Class BukkitCommandEngine

java.lang.Object
net.orbyfied.j8.command.CommandEngine
net.orbyfied.j8.command.impl.BukkitCommandEngine

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

    • BukkitCommandEngine

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

    • registerPlatform

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

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

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

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