fix playerversion command flag
This commit is contained in:
parent
2068aebd52
commit
25353865b4
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue