From 6c8bda24fd670fe71338aa954f0bff5ad945ac92 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sun, 4 Nov 2012 00:06:44 +0100 Subject: [PATCH] Parse "detailed" as TRUE. --- .../src/main/java/com/comphenix/protocol/CommandPacket.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java index 8bcc9f4e..86eccd23 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java @@ -209,7 +209,7 @@ class CommandPacket extends CommandBase { ConnectionSide side = parseSide(args, 1, ConnectionSide.BOTH); Integer lastIndex = args.length - 1; - Boolean detailed = parseBoolean(args, lastIndex); + Boolean detailed = parseBoolean(args, "detailed", lastIndex); // See if the last element is a boolean if (detailed == null) { @@ -495,10 +495,12 @@ class CommandPacket extends CommandBase { } // Parse a boolean - private Boolean parseBoolean(String[] args, int index) { + private Boolean parseBoolean(String[] args, String parameterName, int index) { if (index < args.length) { if (args[index].equalsIgnoreCase("true")) return true; + else if (args[index].equalsIgnoreCase(parameterName)) + return true; else if (args[index].equalsIgnoreCase("false")) return false; else