diff --git a/pom.xml b/pom.xml index c6cf4d0..2745819 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.palmergames.bukkit TownyChat jar - 0.94 + 0.95 diff --git a/resources/changelog.txt b/resources/changelog.txt index 4660c6d..9f36bd5 100644 --- a/resources/changelog.txt +++ b/resources/changelog.txt @@ -397,4 +397,6 @@ v0.93: - Use Towny's built-in Commented configuration & adapt to use the new width() option supplied by Spigot. v0.94: - Remove 2 unused replacers in TownyChatFormatter. - - Switch to using Translatables, so messages appear in the correct Locale for each player. \ No newline at end of file + - Switch to using Translatables, so messages appear in the correct Locale for each player. +v0.95: + - Regression: channels.yml not handling /townychat reload, bug began in 0.92. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/Chat.java b/src/com/palmergames/bukkit/TownyChat/Chat.java index 24745ff..6ffa381 100644 --- a/src/com/palmergames/bukkit/TownyChat/Chat.java +++ b/src/com/palmergames/bukkit/TownyChat/Chat.java @@ -55,7 +55,7 @@ public class Chat extends JavaPlugin { public static boolean usingEssentialsDiscord = false; boolean chatConfigError = false; boolean channelsConfigError = false; - private static ConcurrentMap playerChannelMap = new ConcurrentHashMap<>(); + private static ConcurrentMap playerChannelMap; @Override public void onEnable() { @@ -63,6 +63,7 @@ public class Chat extends JavaPlugin { pm = getServer().getPluginManager(); channelsConfig = new ConfigurationHandler(this); channels = new ChannelsHolder(this); + playerChannelMap = new ConcurrentHashMap<>(); checkPlugins(); loadConfigs(); @@ -120,6 +121,7 @@ public class Chat extends JavaPlugin { channelsConfig = null; channels = null; + playerChannelMap = null; } /**