Fix stats command from exposing nicknames

This commit is contained in:
Potato 2017-10-25 08:22:26 +08:00 committed by Ashcon Partovi
parent 6a43a30df9
commit 4a5dcfe2be
1 changed files with 1 additions and 1 deletions

View File

@ -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)