Fix -s flag (#132)

This commit is contained in:
Luck 2017-05-25 21:35:47 +01:00
parent 0febdbe3a4
commit 4109863aa9
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 2 additions and 12 deletions

View File

@ -84,13 +84,8 @@ public class UserDemote extends SubCommand<User> {
return CommandResult.STATE_ERROR;
}
boolean silent = args.remove("-s");
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
boolean silent = false;
if (args.contains("-s")) {
args.remove("-s");
silent = true;
}
// Load applicable groups
Set<Node> nodes = user.getNodes().values().stream()

View File

@ -84,13 +84,8 @@ public class UserPromote extends SubCommand<User> {
return CommandResult.STATE_ERROR;
}
boolean silent = args.remove("-s");
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
boolean silent = false;
if (args.contains("-s")) {
args.remove("-s");
silent = true;
}
// Load applicable groups
Set<Node> nodes = user.getNodes().values().stream()