Merge pull request #52 from TownyAdvanced/fix/perworld_section

Fix worlds section not generating when per-world is set to true in the chatconfig.yml.
This commit is contained in:
LlmDl authored and GitHub committed 2023-08-17 16:10:41 -05:00
commit 43a66a3a1b
3 files changed
+4 -2

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>
+2
View File
@@ -468,3 +468,5 @@ v0.107:
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) {