mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 22:21:20 +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>
|
<url>https://repo.mikeprimm.com</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>github-Towny</id>
|
<id>glaremasters repo</id>
|
||||||
<url>https://maven.pkg.github.com/TownyAdvanced/Towny</url>
|
<url>https://repo.glaremasters.me/repository/towny/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>placeholderapi</id>
|
<id>placeholderapi</id>
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.18.1-R0.1-SNAPSHOT</version>
|
<version>1.19-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class TownyChatPlayerListener implements Listener {
|
|||||||
// Check if essentials has this player muted.
|
// Check if essentials has this player muted.
|
||||||
if (!isEssentialsMuted(player)) {
|
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
|
* If this was directed chat send it via the relevant channel
|
||||||
|
|||||||
Reference in new issue
Block a user