diff --git a/pom.xml b/pom.xml index 888e050..0e16d75 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.palmergames.bukkit TownyChat jar - 0.109 + 0.110 @@ -26,7 +26,7 @@ 17 1.16 UTF-8 - 0.99.5.0 + 0.100.0.0 diff --git a/resources/changelog.txt b/resources/changelog.txt index dfcb547..0db7231 100644 --- a/resources/changelog.txt +++ b/resources/changelog.txt @@ -474,4 +474,5 @@ v0.110: - Add optional listen and speak nodes to TownyChat channels. - The channels in the channels.yml may now be given listenpermission and speakpermission keys, whose values will be the permission node require to either speak or listen to the channel. - When these are set on a channel they will make the permission key of the channel redundant and unused. - - Closes https://github.com/TownyAdvanced/Towny/issues/1020. \ No newline at end of file + - Closes https://github.com/TownyAdvanced/Towny/issues/1020. + - Update min. Towny version to 0.100.0.0. \ 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 12af098..98e56f4 100644 --- a/src/com/palmergames/bukkit/TownyChat/Chat.java +++ b/src/com/palmergames/bukkit/TownyChat/Chat.java @@ -8,6 +8,7 @@ import com.palmergames.bukkit.TownyChat.channels.Channel; import com.palmergames.bukkit.TownyChat.channels.ChannelsHolder; import com.palmergames.bukkit.TownyChat.config.ChatSettings; import com.palmergames.bukkit.TownyChat.config.ChannelConfigurationHandler; +import com.palmergames.bukkit.TownyChat.config.ChannelsSettings; import com.palmergames.bukkit.TownyChat.listener.EssentialsDiscordHookListener; import com.palmergames.bukkit.TownyChat.listener.TownyChatPlayerListener; import com.palmergames.bukkit.TownyChat.tasks.onLoadedTask; @@ -59,7 +60,7 @@ public class Chat extends JavaPlugin { private DynmapAPI dynMap = null; private Essentials essentials = null; - private static String requiredTownyVersion = "0.99.5.0"; + private static String requiredTownyVersion = "0.100.0.0"; public static boolean usingPlaceholderAPI = false; public static boolean usingEssentialsDiscord = false; boolean chatConfigError = false; @@ -120,7 +121,7 @@ public class Chat extends JavaPlugin { private void loadConfigs() { FileMgmt.checkOrCreateFolders(new String[] { getRootPath(), getTownySettingsPath() }); chatConfigError = !ChatSettings.loadCommentedChatConfig(); - channelsConfigError = !channelsConfig.loadChannels(); + channelsConfigError = !ChannelsSettings.loadCommentedChannelsConfig();//!channelsConfig.loadChannels(); } public static Chat getTownyChat() {