diff --git a/src/com/dre/brewery/DistortChat.java b/src/com/dre/brewery/DistortChat.java index 362faabf..2dc6ebd8 100644 --- a/src/com/dre/brewery/DistortChat.java +++ b/src/com/dre/brewery/DistortChat.java @@ -129,7 +129,9 @@ public static void signWrite(SignChangeEvent event) { // Distort players words when he talks public static void playerChat(AsyncPlayerChatEvent event) { BPlayer bPlayer = BPlayer.get(event.getPlayer()); - if (bPlayer != null) { + if (bPlayer == null) { + bPlayer = new BPlayer(event.getPlayer().getUniqueId().toString()); + } if (!words.isEmpty()) { String message = event.getMessage(); if (log) { @@ -146,7 +148,6 @@ public static void playerChat(AsyncPlayerChatEvent event) { event.setMessage(distorted); } - } } // distorts a message, ignoring text enclosed in ignoreText letters