refactor: cleanup logic

This commit is contained in:
darksaid98 committed 2024-01-24 20:53:02 +01:00
1 parent b0ec4f393e
commit e9eb33a838
1 file changed
+1 -1
@@ -72,7 +72,7 @@ public class TownyChatPlayerListener implements Listener {
// Check if essentials has this player muted.
if (!isEssentialsMuted(player)) {
boolean forceGlobal = ChatSettings.isExclamationPoint() ? event.getMessage().startsWith("!") : false;
boolean forceGlobal = ChatSettings.isExclamationPoint() && event.getMessage().startsWith("!");
/*
* If this was directed chat send it via the relevant channel