Package net.orbyfied.j8.command.impl
Class BukkitCommandEngine
java.lang.Object
net.orbyfied.j8.command.CommandEngine
net.orbyfied.j8.command.impl.BukkitCommandEngine
Uses the Bukkit command system to register
and execute/tab-complete commands.
TODO: find a way to get the message above the textbox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidShould shut down the command engine and clean up any resources.voidShould prepare the command engine for usage.protected voidregisterPlatform(Node root) Should do whatever it needs to do when a node gets registered to make it work.protected voidunregisterPlatform(Node root) Should do whatever it needs to do when a node gets unregistered to make it work.Methods inherited from class net.orbyfied.j8.command.CommandEngine
command, dispatch, getTypeResolver, register, setTypeResolver, unregister
-
Constructor Details
-
BukkitCommandEngine
public BukkitCommandEngine(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
registerPlatform
Description copied from class:CommandEngineShould do whatever it needs to do when a node gets registered to make it work.- Specified by:
registerPlatformin classCommandEngine- Parameters:
root- The command node.
-
unregisterPlatform
Description copied from class:CommandEngineShould do whatever it needs to do when a node gets unregistered to make it work.- Specified by:
unregisterPlatformin classCommandEngine- Parameters:
root- The command node.
-
enablePlatform
public void enablePlatform()Description copied from class:CommandEngineShould prepare the command engine for usage. Called whenever the system is ready for operation.- Specified by:
enablePlatformin classCommandEngine
-
disablePlatform
public void disablePlatform()Description copied from class:CommandEngineShould shut down the command engine and clean up any resources.- Specified by:
disablePlatformin classCommandEngine
-