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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    Called on plugin enable.
    void
     
    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, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, 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

    getSLF4JLogger
  • Field Details

  • Constructor Details

    • WorldEditPlugin

      public WorldEditPlugin()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Called on plugin enable.
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Called on plugin disable.
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • loadConfiguration

      protected void loadConfiguration()
      Loads and reloads all configuration.
    • createDefaultConfiguration

      protected void createDefaultConfiguration(String name)
      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 interface org.bukkit.command.CommandExecutor
      Overrides:
      onCommand in class org.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 interface org.bukkit.command.TabCompleter
      Overrides:
      onTabComplete in class org.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 player
      editSession - an edit session
    • getLocalConfiguration

      public BukkitConfiguration getLocalConfiguration()
      Returns the configuration used by WorldEdit.
      Returns:
      the configuration
    • getPermissionsResolver

      public PermissionsResolverManager getPermissionsResolver()
      Get the permissions resolver in use.
      Returns:
      the permissions resolver
    • wrapPlayer

      public BukkitPlayer wrapPlayer(org.bukkit.entity.Player player)
      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