diff --git a/pom.xml b/pom.xml
index 6a5d761..cf21afb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
com.palmergames.bukkit
TownyChat
jar
- 0.103
+ 0.104
@@ -26,7 +26,7 @@
17
1.16
UTF-8
- 0.98.5.0
+ 0.99.0.0
@@ -50,8 +50,8 @@
https://hub.spigotmc.org/nexus/content/repositories/snapshots/
- ess-repo
- https://ci.ender.zone/plugin/repository/everything/
+ essentials-releases
+ https://repo.essentialsx.net/releases/
dynmap-repo
@@ -75,20 +75,26 @@
com.github.TownyAdvanced
Towny
- 0.98.5.0
+ 0.99.0.0
provided
org.spigotmc
spigot-api
- 1.19-R0.1-SNAPSHOT
+ 1.19.4-R0.1-SNAPSHOT
provided
- net.ess3
+ net.essentialsx
EssentialsX
- 2.18.2
+ 2.19.0
provided
+
+
+ org.bstats
+ bstats-bukkit
+
+
us.dynmap
diff --git a/resources/changelog.txt b/resources/changelog.txt
index 0711776..1a05f5c 100644
--- a/resources/changelog.txt
+++ b/resources/changelog.txt
@@ -442,4 +442,9 @@ v0.102:
v0.103:
- New Config Option: allow_exclamation_point_to_shout
- Default: true
- - If true players that say !somewords will have their message sent to a global type channel with unlimited range (usually your general chat.)
\ No newline at end of file
+ - If true players that say !somewords will have their message sent to a global type channel with unlimited range (usually your general chat.)
+v0.104:
+ - Update min. Towny version to 0.99.0.0.
+ - Update EssentialsX maven details.
+ - Translate spy message colour codes.
+ - Closes https://github.com/TownyAdvanced/Towny/issues/6634
\ 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 5cf891d..d4f5518 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 {
private DynmapAPI dynMap = null;
private Essentials essentials = null;
- private static Version requiredTownyVersion = Version.fromString("0.98.5.0");
+ private static Version requiredTownyVersion = Version.fromString("0.99.0.0");
public static boolean usingPlaceholderAPI = false;
public static boolean usingEssentialsDiscord = false;
boolean chatConfigError = false;
diff --git a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java
index 59e248b..17c0c30 100644
--- a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java
+++ b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java
@@ -282,10 +282,11 @@ public class StandardChannel extends Channel {
String format = formatSpyMessage(type, event.getPlayer());
if (format == null) return;
+ String message = Colors.translateColorCodes(event.getMessage());
// Remove spies who've already seen the message naturally.
spies.stream()
.filter(spy -> !recipients.contains(spy))
- .forEach(spy -> spy.sendMessage(format + event.getMessage()));
+ .forEach(spy -> spy.sendMessage(format + message));
}
/**
diff --git a/src/com/palmergames/bukkit/TownyChat/config/ChannelConfigurationHandler.java b/src/com/palmergames/bukkit/TownyChat/config/ChannelConfigurationHandler.java
index e88f607..606dc60 100644
--- a/src/com/palmergames/bukkit/TownyChat/config/ChannelConfigurationHandler.java
+++ b/src/com/palmergames/bukkit/TownyChat/config/ChannelConfigurationHandler.java
@@ -5,8 +5,8 @@ import com.palmergames.bukkit.TownyChat.channels.Channel;
import com.palmergames.bukkit.TownyChat.channels.StandardChannel;
import com.palmergames.bukkit.TownyChat.channels.channelTypes;
import org.bukkit.Bukkit;
+import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.constructor.SafeConstructor;
import org.yaml.snakeyaml.reader.UnicodeReader;
import java.io.BufferedReader;
@@ -183,7 +183,7 @@ public class ChannelConfigurationHandler {
f = new File(filepath);
- Yaml yamlChannels = new Yaml(new SafeConstructor());
+ Yaml yamlChannels = new Yaml(new LoaderOptions());
Object channelsRootDataNode;
try (FileInputStream fileInputStream = new FileInputStream(f)) {