Bugfix AFK message not having the right placeholders
This commit is contained in:
parent
193462015d
commit
d5be87ac61
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue