移除增强聊天信息中冗余的正则表达式转义字符
This commit is contained in:
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
/// 增强聊天信息
|
||||
public class ChatEnhancement implements Listener {
|
||||
private static final Pattern pattern = Pattern.compile("\\[item\\]|\\[(\\d{1,2})\\]");
|
||||
private static final Pattern pattern = Pattern.compile("\\[item]|\\[(\\d{1,2})]");
|
||||
|
||||
protected static BaseComponent getComponent(HashMap<Integer, BaseComponent> map, Player player, int n) {
|
||||
if (map.containsKey(n)) {
|
||||
|
||||
Reference in New Issue
Block a user