From d5be87ac616ce4863d7c755463834cb9f763f97b Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Fri, 18 Oct 2024 00:34:39 +0200 Subject: [PATCH] Bugfix AFK message not having the right placeholders --- gradle.properties | 2 +- src/main/java/cc/reconnected/server/RccServer.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 58492e5..755ca3d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.16.5 # Mod Properties -mod_version=1.10.0 +mod_version=1.10.1 maven_group=cc.reconnected archives_base_name=rcc-server diff --git a/src/main/java/cc/reconnected/server/RccServer.java b/src/main/java/cc/reconnected/server/RccServer.java index 5f0a1ad..5b27435 100644 --- a/src/main/java/cc/reconnected/server/RccServer.java +++ b/src/main/java/cc/reconnected/server/RccServer.java @@ -141,7 +141,9 @@ public class RccServer implements ModInitializer { var displayName = JSONComponentSerializer.json().deserialize(displayNameJson); var message = MiniMessage.miniMessage().deserialize(CONFIG.afkMessage(), - Placeholder.component("name", displayName) + Placeholder.component("displayname", displayName), + Placeholder.unparsed("username", player.getGameProfile().getName()), + Placeholder.unparsed("uuid", player.getUuid().toString()) ); broadcastMessage(server, message);