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:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class WorldEditPlugin
extends org.bukkit.plugin.java.JavaPlugin
implements org.bukkit.command.TabCompleter
Plugin for Bukkit.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create a default configuration file from the .jar.com.sk89q.worldedit.EditSession
createEditSession
(org.bukkit.entity.Player player) Gets the session for the player.Returns the configuration used by WorldEdit.Get the permissions resolver in use.com.sk89q.worldedit.LocalSession
getSession
(org.bukkit.entity.Player player) Gets the session for the player.com.sk89q.worldedit.WorldEdit
Get WorldEdit.protected void
Loads and reloads all configuration.boolean
onCommand
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) void
Called on plugin disable.void
onEnable()
Called on plugin enable.void
onLoad()
onTabComplete
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) void
remember
(org.bukkit.entity.Player player, com.sk89q.worldedit.EditSession editSession) Remember an edit session.com.sk89q.worldedit.extension.platform.Actor
wrapCommandSender
(org.bukkit.command.CommandSender sender) wrapPlayer
(org.bukkit.entity.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, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, 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, getLog4JLogger, getSLF4JLogger
-
Field Details
-
CUI_PLUGIN_CHANNEL
- See Also:
-
-
Constructor Details
-
WorldEditPlugin
public WorldEditPlugin()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoad
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onLoad
in classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()Called on plugin enable.- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Called on plugin disable.- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
loadConfiguration
protected void loadConfiguration()Loads and reloads all configuration. -
createDefaultConfiguration
Create a default configuration file from the .jar.- Parameters:
name
- the filename
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Overrides:
onCommand
in classorg.bukkit.plugin.java.JavaPlugin
-
onTabComplete
public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) - Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Overrides:
onTabComplete
in classorg.bukkit.plugin.java.JavaPlugin
-
getSession
public com.sk89q.worldedit.LocalSession getSession(org.bukkit.entity.Player player) Gets the session for the player.- Parameters:
player
- a player- Returns:
- a session
-
createEditSession
public com.sk89q.worldedit.EditSession createEditSession(org.bukkit.entity.Player player) Gets the session for the player.- Parameters:
player
- a player- Returns:
- a session
-
remember
public void remember(org.bukkit.entity.Player player, com.sk89q.worldedit.EditSession editSession) 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
-
wrapPlayer
Used to wrap a Bukkit Player as a WorldEdit Player.- Parameters:
player
- a player- Returns:
- a wrapped player
-
wrapCommandSender
public com.sk89q.worldedit.extension.platform.Actor wrapCommandSender(org.bukkit.command.CommandSender sender) -
getWorldEdit
public com.sk89q.worldedit.WorldEdit getWorldEdit()Get WorldEdit.- Returns:
- an instance
-