Skip to content

Commit

Permalink
Make world argument work in Group and Permission commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed May 14, 2013
1 parent 69b6f48 commit 46b7126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -27,7 +27,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
if (aH.matchesArg("ADD, REMOVE", arg)) {
action = Action.valueOf(aH.getStringFrom(arg).toUpperCase());
} else if (aH.matchesValueArg("WORLD", arg, ArgumentType.String)) {
group = aH.getStringFrom(arg);
world = aH.getStringFrom(arg);
} else group = arg;
}

Expand Down
Expand Up @@ -31,7 +31,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
} else if (aH.matchesValueArg("GROUP", arg, ArgumentType.String)) {
group = aH.getStringFrom(arg);
} else if (aH.matchesValueArg("WORLD", arg, ArgumentType.String)) {
group = aH.getStringFrom(arg);
world = aH.getStringFrom(arg);
} else permission = arg;

}
Expand Down

0 comments on commit 46b7126

Please sign in to comment.