aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/EventRegistry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/torui/coflsky/EventRegistry.java')
-rw-r--r--src/main/java/de/torui/coflsky/EventRegistry.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/EventRegistry.java b/src/main/java/de/torui/coflsky/EventRegistry.java
index 43276db..9d82f14 100644
--- a/src/main/java/de/torui/coflsky/EventRegistry.java
+++ b/src/main/java/de/torui/coflsky/EventRegistry.java
@@ -39,7 +39,7 @@ import static de.torui.coflsky.EventHandler.ScoreboardData;
import static de.torui.coflsky.EventHandler.TabMenuData;
public class EventRegistry {
- public static Pattern chatpattern = Pattern.compile("", Pattern.CASE_INSENSITIVE);
+ public static Pattern chatpattern = Pattern.compile("a^", Pattern.CASE_INSENSITIVE);
public final ExecutorService chatThreadPool = Executors.newFixedThreadPool(2);
public final ExecutorService tickThreadPool = Executors.newFixedThreadPool(2);
@SubscribeEvent
@@ -134,7 +134,7 @@ public class EventRegistry {
@SubscribeEvent
public void HandleChatEvent(ClientChatReceivedEvent sce) {
- if(CoflSky.Wrapper.isRunning) {
+ if(CoflSky.Wrapper.isRunning && Configuration.getInstance().collectChat) {
chatThreadPool.submit(() -> {
String msg = sce.message.getUnformattedText();
Matcher matcher = chatpattern.matcher(msg);