@NonnullByDefault public abstract class AbstractCommand extends Object implements Command, CommandExecutor
Command and CommandExecutor| Modifier and Type | Field and Description |
|---|---|
protected String |
descritpion |
protected String |
permission |
protected String |
permissionMessasge |
EMPTY| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource.
|
boolean |
onCommand(CommandSender sender,
Command command,
String label,
String[] args) |
void |
register(String... aliases)
Registers this command with the server, via the given plugin instance
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcall, registerAndBindbindWith, closeAndReportException, closeSilently, isClosedpublic void register(String... aliases)
Commandpublic void close()
Terminableclose in interface AutoCloseableclose in interface Terminablepublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)
onCommand in interface CommandExecutorCopyright © 2020. All rights reserved.