Package com.sk89q.worldedit.bukkit
Class WorldEditPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.sk89q.worldedit.bukkit.WorldEditPlugin
- All Implemented Interfaces:
LifecycleEventOwner,CommandExecutor,TabCompleter,TabExecutor,Plugin
Plugin for Bukkit.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate a default configuration file from the .jar.createEditSession(Player player) Gets the session for the player.static WorldEditPluginGets the instance of this plugin.Returns the configuration used by WorldEdit.Get the permissions attachment manager in useGet the permissions resolver in use.getSession(Player player) Gets the session for the player.Get WorldEdit.protected voidLoads and reloads all configuration.booleanonCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) voidCalled on plugin disable.voidonEnable()Called on plugin enable.voidonLoad()voidremember(Player player, EditSession editSession) Remember an edit session.wrapCommandSender(CommandSender sender) wrapPlayer(Player player) Used to wrap a Bukkit Player as a WorldEdit Player.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Field Details
-
CUI_PLUGIN_CHANNEL
- See Also:
-
-
Constructor Details
-
WorldEditPlugin
public WorldEditPlugin()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfacePlugin- Overrides:
onLoadin classJavaPlugin
-
onEnable
public void onEnable()Called on plugin enable.- Specified by:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()Called on plugin disable.- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein classJavaPlugin
-
loadConfiguration
protected void loadConfiguration()Loads and reloads all configuration. -
createDefaultConfiguration
Create a default configuration file from the .jar.- Parameters:
name- the filename
-
onCommand
- Specified by:
onCommandin interfaceCommandExecutor- Overrides:
onCommandin classJavaPlugin
-
getSession
Gets the session for the player.- Parameters:
player- a player- Returns:
- a session
-
createEditSession
Gets the session for the player.- Parameters:
player- a player- Returns:
- a session
-
remember
Remember an edit session.- Parameters:
player- a playereditSession- an edit session
-
getLocalConfiguration
Returns the configuration used by WorldEdit.- Returns:
- the configuration
-
getPermissionsResolver
Get the permissions resolver in use.- Returns:
- the permissions resolver
-
getPermissionAttachmentManager
Get the permissions attachment manager in use- Returns:
- the permissions attachment manager
-
wrapPlayer
Used to wrap a Bukkit Player as a WorldEdit Player.- Parameters:
player- a player- Returns:
- a wrapped player
-
wrapCommandSender
-
getInternalPlatform
-
getWorldEdit
Get WorldEdit.- Returns:
- an instance
-
getInstance
Gets the instance of this plugin.- Returns:
- an instance of the plugin
- Throws:
NullPointerException- if the plugin hasn't been enabled
-
getBukkitImplAdapter
-