mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 22:22:19 +00:00
Make forceglobal more readable, maybe even somehow fix an issue a
sponsor had.
This commit is contained in:
1 parent
93aa36719c
commit
fe47196db7
2 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user