diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
index a6705d2a6..c89c0a9ff 100644
--- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
+++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
@@ -701,8 +701,10 @@ public class PlayerEventListener extends PlotListener implements Listener {
String message = event.getMessage();
String sender = event.getPlayer().getDisplayName();
PlotId id = plot.getId();
+ String worldName = plot.getWorldName();
Caption msg = TranslatableCaption.of("chat.plot_chat_format");
Template msgTemplate;
+ Template worldNameTemplate = Template.of("world", worldName);
Template plotTemplate = Template.of("plot_id", id.toString());
Template senderTemplate = Template.of("sender", sender);
// If we do/don't want colour, we need to be careful about how to go about it, as players could attempt either or &6 etc.
@@ -723,7 +725,7 @@ public class PlayerEventListener extends PlotListener implements Listener {
ChatColor.stripColor(BukkitUtil.LEGACY_COMPONENT_SERIALIZER.serialize(Component.text(message)))));
}
for (PlotPlayer> receiver : plotRecipients) {
- receiver.sendMessage(msg, msgTemplate, plotTemplate, senderTemplate);
+ receiver.sendMessage(msg, worldNameTemplate, msgTemplate, plotTemplate, senderTemplate);
}
if (!spies.isEmpty()) {
Caption spymsg = TranslatableCaption.of("chat.plot_chat_spy_format");
@@ -731,7 +733,7 @@ public class PlayerEventListener extends PlotListener implements Listener {
Template spysenderTemplate = Template.of("sender", sender);
Template spymessageTemplate = Template.of("msg", Component.text(message));
for (PlotPlayer> player : spies) {
- player.sendMessage(spymsg, plotidTemplate, spysenderTemplate, spymessageTemplate);
+ player.sendMessage(spymsg, worldNameTemplate, plotidTemplate, spysenderTemplate, spymessageTemplate);
}
}
if (Settings.Chat.LOG_PLOTCHAT_TO_CONSOLE) {
@@ -739,7 +741,9 @@ public class PlayerEventListener extends PlotListener implements Listener {
Template plotidTemplate = Template.of("plot_id", id.getX() + ";" + id.getY());
Template spysenderTemplate = Template.of("sender", sender);
Template spymessageTemplate = Template.of("msg", Component.text(message));
- ConsolePlayer.getConsole().sendMessage(spymsg, plotidTemplate, spysenderTemplate, spymessageTemplate);
+ ConsolePlayer.getConsole().sendMessage(spymsg, worldNameTemplate, plotidTemplate, spysenderTemplate,
+ spymessageTemplate
+ );
}
}
diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json
index 83be145cd..c7a917623 100644
--- a/Core/src/main/resources/lang/messages_en.json
+++ b/Core/src/main/resources/lang/messages_en.json
@@ -397,8 +397,8 @@
"list.plot_list_header_paged": "(Page /) List of plots",
"list.plot_list_header": "List of plots.",
"list.page_turn": ">Back | >Next",
- "chat.plot_chat_spy_format": "[Plot Spy] [] : ",
- "chat.plot_chat_format": "[Plot Chat] [] : ",
+ "chat.plot_chat_spy_format": "[Plot Spy] [;] : ",
+ "chat.plot_chat_format": "[Plot Chat] [;] : ",
"chat.plot_chat_forced": "This world forces everyone to use plot chat.",
"deny.denied_added": "You successfully denied the player from this plot.",
"deny.no_enter": "You are denied from the plot and therefore not allowed to enter.",