Make forceglobal more readable, maybe even somehow fix an issue a

sponsor had.
This commit is contained in:
LlmDl committed 2023-02-02 21:08:34 -06:00
1 parent 93aa36719c
commit fe47196db7
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -58,8 +58,8 @@
<url>https://repo.mikeprimm.com</url>
</repository>
<repository>
<id>github-Towny</id>
<url>https://maven.pkg.github.com/TownyAdvanced/Towny</url>
<id>glaremasters repo</id>
<url>https://repo.glaremasters.me/repository/towny/</url>
</repository>
<repository>
<id>placeholderapi</id>
@@ -81,7 +81,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.1-R0.1-SNAPSHOT</version>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -75,7 +75,7 @@ public class TownyChatPlayerListener implements Listener {
// 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