From be073a1c498d6cdc601358178467c0d687a5967f Mon Sep 17 00:00:00 2001 From: LlmDl Date: Wed, 7 Dec 2022 17:10:34 -0600 Subject: [PATCH] - Make TownyChat better able to handle broken PAPI placeholders that won't parse. - On the off chance you have put unparse-able placeholders into your chatconfig.yml you will be made aware of them in your log. - This new system should be able to let TownyChat format your chat properly when this occurs. - Update min. Towny version to 0.98.4.0. --- pom.xml | 2 +- resources/changelog.txt | 6 +++++- src/com/palmergames/bukkit/TownyChat/Chat.java | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index fccc2ef..12cef52 100644 --- a/pom.xml +++ b/pom.xml @@ -74,7 +74,7 @@ com.github.TownyAdvanced Towny - 0.98.3.0 + 0.98.4.0 provided diff --git a/resources/changelog.txt b/resources/changelog.txt index d54b1cf..df54070 100644 --- a/resources/changelog.txt +++ b/resources/changelog.txt @@ -425,4 +425,8 @@ v0.98: - There is a chance that some 3rd party chat plugins will break. Let me know about this asap. v0.99: - Allow for players to use !message to send chat to a Global channel. - - Will not work when chat is being directed to a channel, ie: /nc !chat message. \ No newline at end of file + - Will not work when chat is being directed to a channel, ie: /nc !chat message. + - Make TownyChat better able to handle broken PAPI placeholders that won't parse. + - On the off chance you have put unparse-able placeholders into your chatconfig.yml you will be made aware of them in your log. + - This new system should be able to let TownyChat format your chat properly when this occurs. + - Update min. Towny version to 0.98.4.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 7029633..43d25ba 100644 --- a/src/com/palmergames/bukkit/TownyChat/Chat.java +++ b/src/com/palmergames/bukkit/TownyChat/Chat.java @@ -53,7 +53,7 @@ public class Chat extends JavaPlugin { private Towny towny = null; private DynmapAPI dynMap = null; - private static Version requiredTownyVersion = Version.fromString("0.98.3.0"); + private static Version requiredTownyVersion = Version.fromString("0.98.4.0"); public static boolean usingPlaceholderAPI = false; public static boolean usingEssentialsDiscord = false; boolean chatConfigError = false;