@NonnullByDefault public abstract class AbstractCommand extends Object implements Command, CommandExecutor
Command and CommandExecutorEMPTY| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCommand(CommandSender sender,
Command command,
String label,
String[] args) |
void |
register(ExtendedJavaPlugin plugin,
String... aliases)
Registers this command with the server, via the given plugin instance
|
boolean |
terminate()
Terminate this instance
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcall, registerAndBindbindWith, close, hasTerminated, ofpublic void register(ExtendedJavaPlugin plugin, String... aliases)
Commandpublic boolean terminate()
Terminableterminate in interface Terminablepublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)
onCommand in interface CommandExecutorCopyright © 2017. All rights reserved.