Skip to content

Commit

Permalink
Merge pull request #52 from TownyAdvanced/fix/perworld_section
Browse files Browse the repository at this point in the history
Fix worlds section not generating when per-world is set to true in the chatconfig.yml.
  • Loading branch information
LlmDl authored Aug 17, 2023
2 parents c4c442d + a47f2e4 commit 43a66a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.108</version>
<version>0.109</version>

<licenses>
<license>
Expand Down
4 changes: 3 additions & 1 deletion resources/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,4 +467,6 @@ v0.107:
- Handle knock-off Essentials plugins fooling TownyChat into hooking the real EssentialsX.
v0.108:
- 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.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static void loadWorldFormats() {
}

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) {
Expand Down

0 comments on commit 43a66a3

Please sign in to comment.