mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
feat: 子命令通过返回true
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
94c50995f2
commit
64b0b9992a
@ -125,9 +125,8 @@ public class CommandInfo {
|
|||||||
} else {
|
} else {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,35 +34,35 @@ public class CommandManager implements TabExecutor {
|
|||||||
/**
|
/**
|
||||||
* 插件实例类
|
* 插件实例类
|
||||||
*/
|
*/
|
||||||
JavaPlugin plugin = P.instance;
|
private final JavaPlugin plugin = P.instance;
|
||||||
/**
|
/**
|
||||||
* 默认命令
|
* 默认命令
|
||||||
*/
|
*/
|
||||||
CommandInfo defCmd = null;
|
private CommandInfo defCmd = null;
|
||||||
/**
|
/**
|
||||||
* 命令列表
|
* 命令列表
|
||||||
*/
|
*/
|
||||||
Set<CommandInfo> cmds = new HashSet<>();
|
private final Set<CommandInfo> cmds = new HashSet<>();
|
||||||
/**
|
/**
|
||||||
* Tab列表
|
* Tab列表
|
||||||
*/
|
*/
|
||||||
Set<TabInfo> tabs = new HashSet<>();
|
private final Set<TabInfo> tabs = new HashSet<>();
|
||||||
/**
|
/**
|
||||||
* 命令缓存列表
|
* 命令缓存列表
|
||||||
*/
|
*/
|
||||||
Map<String, CommandInfo> cmdCache = new HashMap<>();
|
private final Map<String, CommandInfo> cmdCache = new HashMap<>();
|
||||||
/**
|
/**
|
||||||
* 命令名称缓存
|
* 命令名称缓存
|
||||||
*/
|
*/
|
||||||
List<String> cmdNameCache = new ArrayList<>();
|
private final List<String> cmdNameCache = new ArrayList<>();
|
||||||
/**
|
/**
|
||||||
* 命令帮助
|
* 命令帮助
|
||||||
*/
|
*/
|
||||||
CommandHelp help;
|
private CommandHelp help;
|
||||||
/**
|
/**
|
||||||
* 插件命令
|
* 插件命令
|
||||||
*/
|
*/
|
||||||
PluginCommand cmd;
|
private final PluginCommand cmd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 命令管理器
|
* 命令管理器
|
||||||
@ -149,7 +149,7 @@ public class CommandManager implements TabExecutor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置帮助解析器
|
* 设置帮助解析器
|
||||||
*
|
*
|
||||||
* @param helpParse
|
* @param helpParse
|
||||||
* 帮助解析器
|
* 帮助解析器
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user