Class TreeCommandHandler

java.lang.Object
me.efekos.simpler.commands.TreeCommandHandler

public abstract class TreeCommandHandler extends Object
A class that hols a CommandTree for CommandManager to use. When using Simpler.registerCommands(JavaPlugin), you need to make a class the extends this class and is annotated with CommandTreeHandler to make Simpler notice your TreeCommandHandler class.
  • Constructor Details

    • TreeCommandHandler

      public TreeCommandHandler()
      Creates a new handler.
  • Method Details

    • getTree

      public abstract CommandTree getTree()
      Returns a command tree that will be registered.
      Returns:
      A CommandTree instance.