Update BcastLoginMessageCMD.java

This commit is contained in:
Deauthorized 2024-05-02 17:24:49 -04:00 committed by GitHub
parent 7d94717de5
commit 5040c76dc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ public class BcastLoginMessageCMD extends PlexCommand
if (!loginMessage.isEmpty())
{
PlexUtils.broadcast(PlexUtils.stringToComponent(loginMessage));
PlexUtils.broadcast(mmString("<yellow>" + plexPlayer.getName() + " joined the game"));
PlexUtils.broadcast(messageComponent("loginMessage", plexPlayer.getName()));
}
else
{
@ -56,4 +56,4 @@ public class BcastLoginMessageCMD extends PlexCommand
{
return args.length == 1 && silentCheckPermission(sender, this.getPermission()) ? PlexUtils.getPlayerNameList() : ImmutableList.of();
}
}
}