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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create a default configuration file from the .jar.createEditSession
(Player player) Gets the session for the player.static WorldEditPlugin
Gets 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 void
Loads and reloads all configuration.boolean
onCommand
(CommandSender sender, Command cmd, String commandLabel, String[] args) void
Called on plugin disable.void
onEnable()
Called on plugin enable.void
onLoad()
void
remember
(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, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
onLoad
in interfacePlugin
- Overrides:
onLoad
in classJavaPlugin
-
onEnable
public void onEnable()Called on plugin enable.- Specified by:
onEnable
in interfacePlugin
- Overrides:
onEnable
in classJavaPlugin
-
onDisable
public void onDisable()Called on plugin disable.- Specified by:
onDisable
in interfacePlugin
- Overrides:
onDisable
in 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:
onCommand
in interfaceCommandExecutor
- Overrides:
onCommand
in 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
-