Fix chat.yml chat channel toggles

This commit is contained in:
nossr50 2020-11-10 11:07:07 -08:00
parent d9e99b08db
commit c9b950d0c8
4 changed files with 6 additions and 3 deletions

View File

@ -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 Version 2.1.155
Master Angler now has 8 ranks Master Angler now has 8 ranks
Master Angler is now supported by the latest builds of Spigot on 1.16.4 Master Angler is now supported by the latest builds of Spigot on 1.16.4

View File

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

View File

@ -35,7 +35,7 @@ public class ChatConfig extends AutoUpdateConfigLoader {
} }
public boolean isChatChannelEnabled(@NotNull ChatChannel chatChannel) { 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); return config.getBoolean(key, true);
} }

View File

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