From fe47196db7cf977150a5d00b21189306e334e57a Mon Sep 17 00:00:00 2001 From: LlmDl Date: Thu, 2 Feb 2023 21:08:34 -0600 Subject: [PATCH] Make forceglobal more readable, maybe even somehow fix an issue a sponsor had. --- pom.xml | 6 +++--- .../bukkit/TownyChat/listener/TownyChatPlayerListener.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e3239ef..6a5d761 100644 --- a/pom.xml +++ b/pom.xml @@ -58,8 +58,8 @@ https://repo.mikeprimm.com - github-Towny - https://maven.pkg.github.com/TownyAdvanced/Towny + glaremasters repo + https://repo.glaremasters.me/repository/towny/ placeholderapi @@ -81,7 +81,7 @@ org.spigotmc spigot-api - 1.18.1-R0.1-SNAPSHOT + 1.19-R0.1-SNAPSHOT provided diff --git a/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java b/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java index 22e1f6c..0e15183 100644 --- a/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java +++ b/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java @@ -75,7 +75,7 @@ public void onPlayerChat(AsyncPlayerChatEvent event) { // Check if essentials has this player muted. if (!isEssentialsMuted(player)) { - boolean forceGlobal = ChatSettings.isExclamationPoint() && event.getMessage().startsWith("!"); + boolean forceGlobal = ChatSettings.isExclamationPoint() ? event.getMessage().startsWith("!") : false; /* * If this was directed chat send it via the relevant channel