Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Commit 2535386

Browse files
cswhite2000Pablete1234
authored andcommitted
fix playerversion command flag
1 parent 2068aeb commit 2535386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/MiscCommands.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void listPlayerVersions(final CommandContext args, final CommandSender se
6262
if (args.hasFlag('a')) {
6363
Map<String, Integer> playerCountVersionMap = new HashMap<>();
6464
userStore.stream().forEach(player -> {
65-
String version = MinecraftVersion.describeProtocol(player.getProtocolVersion(), args.hasFlag('d'));
65+
String version = MinecraftVersion.describeProtocol(player.getProtocolVersion(), !args.hasFlag('d'));
6666
playerCountVersionMap.put(version, playerCountVersionMap.getOrDefault(version, 0) + 1);
6767
});
6868

0 commit comments

Comments
 (0)