Fix stats command revealing nicknames

This commit is contained in:
Potato 2018-02-28 04:25:49 +08:00 committed by Ashcon Partovi
parent ffaab41ccc
commit 5c17281ebd
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.user, result.user.nickname())))));
.translate("stats.list", new PlayerComponent(identityProvider.currentIdentity(result.user)))));
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)