From f1e92749b9fadc4e27eb070eba789778c6e3d001 Mon Sep 17 00:00:00 2001 From: Jeremy Schroeder Date: Sun, 10 Nov 2013 10:55:34 -0500 Subject: [PATCH] Possible fix for location lists without li@ (JstMeMage) --- .../denizen/scripts/commands/player/ShowFakeCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ShowFakeCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ShowFakeCommand.java index 6828d95c8a..d7c9d5318c 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ShowFakeCommand.java +++ b/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ShowFakeCommand.java @@ -23,14 +23,14 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException // Iterate through arguments for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) { - if (arg.matchesArgumentType(dLocation.class)) - locations.add(arg.getValue()); - - else if (arg.matchesArgumentType(dList.class)) { + if (arg.matchesArgumentType(dList.class)) { for (String item : dList.valueOf(arg.getValue())) if (dLocation.matches(item)) locations.add(item); } + else if (arg.matchesArgumentType(dLocation.class)) + locations.add(arg.getValue()); + else if (arg.matchesPrefix("d, duration") && arg.matchesArgumentType(Duration.class)) scriptEntry.addObject("duration", arg.asType(Duration.class));