shorten percentages

This commit is contained in:
cswhite2000 2017-07-06 02:47:06 -07:00 committed by Ashcon Partovi
parent f5ea1e901c
commit 84fbd5ad7a
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class MiscCommands implements Commands {
audience.sendMessage(new TranslatableComponent("list.player.versions.message." + (entry.getValue() == 1 ? "singular" : "plural"),
ChatColor.AQUA + entry.getValue().toString(),
ChatColor.AQUA + MinecraftVersion.describeProtocol(entry.getKey()),
Double.valueOf(100 * entry.getValue() / (double)userStore.count()).toString() + "%"));
String.format("%.1f", 100 * entry.getValue() / (double)userStore.count()) + "%"));
}
} else {
Player player = CommandUtils.getPlayerOrSelf(args, sender, 0);