From 956912481baf1a374dae2f2e35866bcc0062e142 Mon Sep 17 00:00:00 2001 From: Llm Dl Date: Sat, 12 Mar 2022 12:32:20 -0600 Subject: [PATCH] - Fix the display_channel_join_message_on_joining_the_server option in the config not being used. --- resources/changelog.txt | 4 +++- .../bukkit/TownyChat/config/ConfigurationHandler.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/changelog.txt b/resources/changelog.txt index 8afa078..9b3eae7 100644 --- a/resources/changelog.txt +++ b/resources/changelog.txt @@ -402,4 +402,6 @@ v0.95: - Regression: channels.yml not handling /townychat reload, bug began in 0.92. v0.96: - Display invalid subcommand message when /ch is used with an invalid subcommand. - - Replace the splitter for channels saved in metadata with the , symbol. \ No newline at end of file + - Replace the splitter for channels saved in metadata with the , symbol. +v0.97: + - Fix the display_channel_join_message_on_joining_the_server option in the config not being used. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/config/ConfigurationHandler.java b/src/com/palmergames/bukkit/TownyChat/config/ConfigurationHandler.java index 55f0dc9..66de315 100644 --- a/src/com/palmergames/bukkit/TownyChat/config/ConfigurationHandler.java +++ b/src/com/palmergames/bukkit/TownyChat/config/ConfigurationHandler.java @@ -203,7 +203,7 @@ public class ConfigurationHandler { } } - if (Key.equalsIgnoreCase("display_modes_set_on_join")) + if (Key.equalsIgnoreCase("display_channel_join_message_on_joining_the_server")) ChatSettings.setDisplayModesSetOnJoin(Boolean.valueOf(file.get(Key).toString())); if (Key.equalsIgnoreCase("colour")) {