Fix worlds section not generating when per-world is set to true in the

chatconfig.yml.
This commit is contained in:
LlmDl committed 2023-08-17 16:10:19 -05:00
1 parent c4c442d43c
commit a47f2e46fe
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId> <groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId> <artifactId>TownyChat</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.108</version> <version>0.109</version>
<licenses> <licenses>
<license> <license>
+3 -1
View File
@@ -467,4 +467,6 @@ v0.107:
- Handle knock-off Essentials plugins fooling TownyChat into hooking the real EssentialsX. - Handle knock-off Essentials plugins fooling TownyChat into hooking the real EssentialsX.
v0.108: v0.108:
- Fix help menus not being coloured properly. - Fix help menus not being coloured properly.
- Update min. Towny version to 0.99.5.0. - Update min. Towny version to 0.99.5.0.
v0.109:
- Fix worlds section not generating when per-world is set to true in the chatconfig.yml.
@@ -265,7 +265,7 @@ public class ChatSettings {
} }
private static String getOrDefault(String configPath, ChatConfigNodes channelNode) { private static String getOrDefault(String configPath, ChatConfigNodes channelNode) {
return (String) chatConfig.get(configPath != null ? configPath : channelNode.getDefault()); return String.valueOf(chatConfig.get(configPath, channelNode.getDefault()));
} }
private static void addWorldFormat(WorldFormat format) { private static void addWorldFormat(WorldFormat format) {