Class BukkitCommandManager

java.lang.Object
net.orbyfied.j8.command.CommandManager
net.orbyfied.j8.command.impl.BukkitCommandManager

public class BukkitCommandManager extends CommandManager
Uses the Bukkit command system to register and execute/tab-complete commands. TODO: find a way to get the message above the textbox
  • Field Details

    • CONSOLE_SENDER

      public static final Sender CONSOLE_SENDER
  • Constructor Details

    • BukkitCommandManager

      public BukkitCommandManager(org.bukkit.plugin.Plugin plugin)
  • Method Details

    • wrapSender

      public static Sender wrapSender(org.bukkit.command.CommandSender sender)
    • setFallbackPrefix

      public BukkitCommandManager setFallbackPrefix(String fallbackPrefix)
    • getFallbackPrefix

      public String getFallbackPrefix()
    • registerPlatform

      protected void registerPlatform(Node root)
      Description copied from class: CommandManager
      Should do whatever it needs to do when a node gets registered to make it work.
      Specified by:
      registerPlatform in class CommandManager
      Parameters:
      root - The command node.
    • unregisterPlatform

      protected void unregisterPlatform(Node root)
      Description copied from class: CommandManager
      Should do whatever it needs to do when a node gets unregistered to make it work.
      Specified by:
      unregisterPlatform in class CommandManager
      Parameters:
      root - The command node.
    • enablePlatform

      public void enablePlatform()
      Description copied from class: CommandManager
      Should prepare the command engine for usage. Called whenever the system is ready for operation.
      Specified by:
      enablePlatform in class CommandManager
    • disablePlatform

      public void disablePlatform()
      Description copied from class: CommandManager
      Should shut down the command engine and clean up any resources.
      Specified by:
      disablePlatform in class CommandManager