Browse Source

Fix chat.yml chat channel toggles

nossr50 4 years ago
parent
commit
c9b950d0c8
4 changed files with 6 additions and 3 deletions
  1. 3 0
      Changelog.txt
  2. 1 1
      pom.xml
  3. 1 1
      src/main/java/com/gmail/nossr50/config/ChatConfig.java
  4. 1 1
      src/main/resources/chat.yml

+ 3 - 0
Changelog.txt

@@ -1,3 +1,6 @@
+Version 2.1.156
+    Fixed a bug where the admin and party chat toggles in chat.yml didn't function as intended
+
 Version 2.1.155
     Master Angler now has 8 ranks
     Master Angler is now supported by the latest builds of Spigot on 1.16.4

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
-    <version>2.1.155</version>
+    <version>2.1.156-SNAPSHOT</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>

+ 1 - 1
src/main/java/com/gmail/nossr50/config/ChatConfig.java

@@ -35,7 +35,7 @@ public class ChatConfig extends AutoUpdateConfigLoader {
     }
 
     public boolean isChatChannelEnabled(@NotNull ChatChannel chatChannel) {
-        String key = "Chat.Channels." + StringUtils.getCapitalized(chatChannel.toString()) + ".Enabled";
+        String key = "Chat.Channels." + StringUtils.getCapitalized(chatChannel.toString()) + ".Enable";
         return config.getBoolean(key, true);
     }
 

+ 1 - 1
src/main/resources/chat.yml

@@ -12,7 +12,7 @@ Chat:
                 # Whether or not players with the chat spy permission join the server with chat spying toggled on
                 Automatically_Enable_Spying: false
         Admin:
-            # Enable or disable party chat
+            # Enable or disable admin chat
             Enable: true
             # Whether or not to use the current display name of a player
             Use_Display_Names: true