public class CommandManager
extends java.lang.Object
构造器和说明 |
---|
CommandManager() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(java.lang.String command)
执行命令
|
void |
executeAll()
执行全部命令
|
boolean |
exists(java.lang.String command)
是否存在
|
static CommandManager |
getInstance() |
void |
register(java.lang.String command,
CommandExecutor executor)
注册
|
public static CommandManager getInstance()
public void register(java.lang.String command, CommandExecutor executor)
command
- 命令executor
- 执行器public boolean exists(java.lang.String command)
command
- 命令public void execute(java.lang.String command) throws java.lang.Throwable
command
- 命令java.lang.Throwable
public void executeAll()