From 02ea3afbe97a7025ec8f84568b6d008bbc4c322a Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 23 Jan 2017 22:47:39 +0000 Subject: [PATCH] Add "!" delimiter to verbose matching --- .../java/me/lucko/luckperms/common/debug/DebugListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/debug/DebugListener.java b/common/src/main/java/me/lucko/luckperms/common/debug/DebugListener.java index a1ac89fb..33cb302c 100644 --- a/common/src/main/java/me/lucko/luckperms/common/debug/DebugListener.java +++ b/common/src/main/java/me/lucko/luckperms/common/debug/DebugListener.java @@ -71,7 +71,7 @@ public class DebugListener { return false; } - StringTokenizer tokenizer = new StringTokenizer(filter, " |&()", true); + StringTokenizer tokenizer = new StringTokenizer(filter, " |&()!", true); StringBuilder expression = new StringBuilder(); while (tokenizer.hasMoreTokens()) { @@ -104,7 +104,7 @@ public class DebugListener { } private static boolean isDelim(String token) { - return token.equals(" ") || token.equals("|") || token.equals("&") || token.equals("(") || token.equals(")"); + return token.equals(" ") || token.equals("|") || token.equals("&") || token.equals("(") || token.equals(")") || token.equals("!"); } public String uploadPastedData() {