Package me.efekos.simpler.commands
Class TreeCommandHandler
java.lang.Object
me.efekos.simpler.commands.TreeCommandHandler
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CommandTree
getTree()
Returns a command tree that will be registered.
-
Constructor Details
-
TreeCommandHandler
public TreeCommandHandler()Creates a new handler.
-
-
Method Details
-
getTree
Returns a command tree that will be registered.- Returns:
- A
CommandTree
instance.
-