public class CommandHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
List<Command> |
commands |
static CommandHandler |
DEFAULT |
| Constructor and Description |
|---|
CommandHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CommandHandler |
addCommand(Command command) |
void |
execute(CommandSender sender,
List<String> args) |
Optional<Command> |
getCommandFromName(String name) |
boolean |
removeCommand(Command command) |
public static final CommandHandler DEFAULT
@Deprecated public CommandHandler()
public CommandHandler addCommand(Command command)
public boolean removeCommand(Command command)
public void execute(CommandSender sender, List<String> args)
Copyright © 2016. All rights reserved.