@NonnullByDefault public abstract class AbstractCommand extends Object implements Command, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Command and CommandExecutor| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
permission |
protected String |
permissionMessage |
EMPTY| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource.
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
String label,
String[] args) |
List<String> |
onTabComplete(org.bukkit.command.CommandSender sender,
org.bukkit.command.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, callTabCompleter, registerAndBindbindWith, closeAndReportException, closeSilently, isClosedpublic void register(String... aliases)
Commandpublic void close()
Terminableclose in interface AutoCloseableclose in interface Terminablepublic boolean onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
String label,
String[] args)
onCommand in interface org.bukkit.command.CommandExecutorCopyright © 2022. All rights reserved.