diff --git a/src/main/java/pw/yumc/YumCore/commands/CommandInfo.java b/src/main/java/pw/yumc/YumCore/commands/CommandInfo.java index ba42664..cdab42e 100644 --- a/src/main/java/pw/yumc/YumCore/commands/CommandInfo.java +++ b/src/main/java/pw/yumc/YumCore/commands/CommandInfo.java @@ -125,9 +125,8 @@ public class CommandInfo { } else { runnable.run(); } - return true; } - return false; + return true; } /** diff --git a/src/main/java/pw/yumc/YumCore/commands/CommandManager.java b/src/main/java/pw/yumc/YumCore/commands/CommandManager.java index fe0f6a1..c199d52 100644 --- a/src/main/java/pw/yumc/YumCore/commands/CommandManager.java +++ b/src/main/java/pw/yumc/YumCore/commands/CommandManager.java @@ -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 cmds = new HashSet<>(); + private final Set cmds = new HashSet<>(); /** * Tab列表 */ - Set tabs = new HashSet<>(); + private final Set tabs = new HashSet<>(); /** * 命令缓存列表 */ - Map cmdCache = new HashMap<>(); + private final Map cmdCache = new HashMap<>(); /** * 命令名称缓存 */ - List cmdNameCache = new ArrayList<>(); + private final List 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 * 帮助解析器 */