fix playerversion command flag

This commit is contained in:
cswhite2000 2017-07-08 23:31:00 -07:00 committed by Pablete1234
parent 2068aebd52
commit 25353865b4
No known key found for this signature in database
GPG Key ID: DAFF9A337EF9A5FA
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class MiscCommands implements Commands {
if (args.hasFlag('a')) {
Map<String, Integer> playerCountVersionMap = new HashMap<>();
userStore.stream().forEach(player -> {
String version = MinecraftVersion.describeProtocol(player.getProtocolVersion(), args.hasFlag('d'));
String version = MinecraftVersion.describeProtocol(player.getProtocolVersion(), !args.hasFlag('d'));
playerCountVersionMap.put(version, playerCountVersionMap.getOrDefault(version, 0) + 1);
});