Bugfix AFK message not having the right placeholders

This commit is contained in:
Alessandro Proto 2024-10-18 00:34:39 +02:00
parent 193462015d
commit d5be87ac61
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.16.5 loader_version=0.16.5
# Mod Properties # Mod Properties
mod_version=1.10.0 mod_version=1.10.1
maven_group=cc.reconnected maven_group=cc.reconnected
archives_base_name=rcc-server archives_base_name=rcc-server

View file

@ -141,7 +141,9 @@ public class RccServer implements ModInitializer {
var displayName = JSONComponentSerializer.json().deserialize(displayNameJson); var displayName = JSONComponentSerializer.json().deserialize(displayNameJson);
var message = MiniMessage.miniMessage().deserialize(CONFIG.afkMessage(), 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); broadcastMessage(server, message);