Skip to content

Commit

Permalink
Make forceglobal more readable, maybe even somehow fix an issue a
Browse files Browse the repository at this point in the history
sponsor had.
  • Loading branch information
LlmDl committed Feb 3, 2023
1 parent 93aa367 commit fe47196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe47196

Please sign in to comment.