public class WorldEditPlugin
extends org.bukkit.plugin.java.JavaPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
CUI_PLUGIN_CHANNEL
The name of the CUI's plugin channel registration
|
| Constructor and Description |
|---|
WorldEditPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDefaultConfiguration(String name)
Create a default configuration file from the .jar.
|
EditSession |
createEditSession(org.bukkit.entity.Player player)
Gets the session for the player.
|
WorldEditAPI |
getAPI()
Deprecated.
|
BukkitConfiguration |
getLocalConfiguration()
Returns the configuration used by WorldEdit.
|
PermissionsResolverManager |
getPermissionsResolver()
Get the permissions resolver in use.
|
Selection |
getSelection(org.bukkit.entity.Player player)
Gets the region selection for the player.
|
ServerInterface |
getServerInterface()
Get the server interface.
|
LocalSession |
getSession(org.bukkit.entity.Player player)
Gets the session for the player.
|
WorldEdit |
getWorldEdit()
Get WorldEdit.
|
protected void |
loadConfiguration()
Loads and reloads all configuration.
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
Called on WorldEdit command.
|
void |
onDisable()
Called on plugin disable.
|
void |
onEnable()
Called on plugin enable.
|
void |
perform(org.bukkit.entity.Player player,
WorldEditOperation op)
Wrap an operation into an EditSession.
|
void |
remember(org.bukkit.entity.Player player,
EditSession editSession)
Remember an edit session.
|
void |
setSelection(org.bukkit.entity.Player player,
Selection selection)
Sets the region selection for a player.
|
LocalPlayer |
wrapCommandSender(org.bukkit.command.CommandSender sender) |
BukkitPlayer |
wrapPlayer(org.bukkit.entity.Player player)
Used to wrap a Bukkit Player as a LocalPlayer.
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onLoad, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringpublic static final String CUI_PLUGIN_CHANNEL
public void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginprotected void loadConfiguration()
protected void createDefaultConfiguration(String name)
name - public boolean onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
onCommand in interface org.bukkit.command.CommandExecutoronCommand in class org.bukkit.plugin.java.JavaPluginpublic LocalSession getSession(org.bukkit.entity.Player player)
player - public EditSession createEditSession(org.bukkit.entity.Player player)
player - public void remember(org.bukkit.entity.Player player,
EditSession editSession)
player - editSession - public void perform(org.bukkit.entity.Player player,
WorldEditOperation op)
throws Throwable
player - op - Throwable@Deprecated public WorldEditAPI getAPI()
public BukkitConfiguration getLocalConfiguration()
public PermissionsResolverManager getPermissionsResolver()
public BukkitPlayer wrapPlayer(org.bukkit.entity.Player player)
player - public LocalPlayer wrapCommandSender(org.bukkit.command.CommandSender sender)
public ServerInterface getServerInterface()
public WorldEdit getWorldEdit()
public Selection getSelection(org.bukkit.entity.Player player)
player - public void setSelection(org.bukkit.entity.Player player,
Selection selection)
player - selection - Copyright © 2010-2014. All Rights Reserved.