Class WorldEditPlugin

All Implemented Interfaces:
LifecycleEventOwner, CommandExecutor, TabCompleter, TabExecutor, Plugin

public class WorldEditPlugin extends JavaPlugin
Plugin for Bukkit.
  • Field Details

  • Constructor Details

    • WorldEditPlugin

      public WorldEditPlugin()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface Plugin
      Overrides:
      onLoad in class JavaPlugin
    • onEnable

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

      public void onDisable()
      Called on plugin disable.
      Specified by:
      onDisable in interface Plugin
      Overrides:
      onDisable in class 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(CommandSender sender, Command cmd, String commandLabel, String[] args)
      Specified by:
      onCommand in interface CommandExecutor
      Overrides:
      onCommand in class JavaPlugin
    • getSession

      public LocalSession getSession(Player player)
      Gets the session for the player.
      Parameters:
      player - a player
      Returns:
      a session
    • createEditSession

      public EditSession createEditSession(Player player)
      Gets the session for the player.
      Parameters:
      player - a player
      Returns:
      a session
    • remember

      public void remember(Player player, 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
    • getPermissionAttachmentManager

      public BukkitPermissionAttachmentManager getPermissionAttachmentManager()
      Get the permissions attachment manager in use
      Returns:
      the permissions attachment manager
    • wrapPlayer

      public BukkitPlayer wrapPlayer(Player player)
      Used to wrap a Bukkit Player as a WorldEdit Player.
      Parameters:
      player - a player
      Returns:
      a wrapped player
    • wrapCommandSender

      public Actor wrapCommandSender(CommandSender sender)
    • getInternalPlatform

      public BukkitServerInterface getInternalPlatform()
    • getWorldEdit

      public WorldEdit getWorldEdit()
      Get WorldEdit.
      Returns:
      an instance
    • getInstance

      public static WorldEditPlugin getInstance()
      Gets the instance of this plugin.
      Returns:
      an instance of the plugin
      Throws:
      NullPointerException - if the plugin hasn't been enabled
    • getBukkitImplAdapter

      public BukkitImplAdapter getBukkitImplAdapter()