From 25353865b4296ead98168752a3f66d6c9f7f2707 Mon Sep 17 00:00:00 2001 From: cswhite2000 <18whitechristop@gmail.com> Date: Sat, 8 Jul 2017 23:31:00 -0700 Subject: [PATCH] fix playerversion command flag --- .../main/java/tc/oc/commons/bukkit/commands/MiscCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/MiscCommands.java b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/MiscCommands.java index 1a78ac6..a129419 100644 --- a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/MiscCommands.java +++ b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/MiscCommands.java @@ -62,7 +62,7 @@ public class MiscCommands implements Commands { if (args.hasFlag('a')) { Map 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); });