Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
代码调整
Browse files Browse the repository at this point in the history
  • Loading branch information
slinar committed Apr 12, 2019
1 parent 5adebf3 commit 88ce5ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/me/commandBlock/CheckCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import org.bukkit.Bukkit;

public final class CheckCommand {
private static CommandBlock ins = CommandBlock.getIns();

/**
* 根据配置文件检查玩家输入的指令是否需要拦截
Expand Down Expand Up @@ -49,7 +48,7 @@ public static boolean check(String commandStr, String playerName) {
continue outer;
}
}
if (CmdCb.debug) Bukkit.getLogger().info(ConfigFile.PREFIX_C + "命令列表匹配成功:" + commandList.get(i));
if (CmdCb.debug) ins.getLogger().info("命令列表匹配成功:" + commandList.get(i));
return true;
}
}
Expand Down Expand Up @@ -80,7 +79,7 @@ private static boolean match(String reg, String strs) {
} catch (PatternSyntaxException e) {
System.out.println("错误的正则表达式:" + e.getPattern());
}
if (CmdCb.debug) System.out.println("reg:" + reg + " " + "strs:" + strs + " " + result);
if (CmdCb.debug) ins.getLogger().info("reg:" + reg + " " + "strs:" + strs + " " + String.valueOf(result));
return result;
}

Expand Down

0 comments on commit 88ce5ea

Please sign in to comment.