Fix stats command from exposing nicknames
This commit is contained in:
parent
6a43a30df9
commit
4a5dcfe2be
|
@ -52,7 +52,7 @@ public class StatsCommands implements Commands {
|
|||
Audience audience = audiences.get(sender);
|
||||
|
||||
audience.sendMessage(new HeaderComponent(new Component(ChatColor.AQUA)
|
||||
.translate("stats.list", new PlayerComponent(identityProvider.createIdentity(result)))));
|
||||
.translate("stats.list", new PlayerComponent(identityProvider.createIdentity(result.user, result.user.nickname())))));
|
||||
audience.sendMessage(new Component(ChatColor.AQUA)
|
||||
.translate("stats.kills", new Component(String.format("%,d", (int)(double)stats.get("kills")), ChatColor.BLUE)));
|
||||
audience.sendMessage(new Component(ChatColor.AQUA)
|
||||
|
|
Loading…
Reference in New Issue