Skip to content

Commit

Permalink
Gentler perm command 'no vault' error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 28, 2016
1 parent 0003efc commit 972c62c
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -20,6 +20,10 @@ private enum Action {ADD, REMOVE}
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

if (Depends.permissions == null) {
throw new InvalidArgumentsException("Permissions not linked - is Vault improperly installed, or is there no permissions plugin?");
}

for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {

if (!scriptEntry.hasObject("action")
Expand Down

0 comments on commit 972c62c

Please sign in to comment.