Fix -s flag (#132)
This commit is contained in:
parent
0febdbe3a4
commit
4109863aa9
@ -84,13 +84,8 @@ public class UserDemote extends SubCommand<User> {
|
|||||||
return CommandResult.STATE_ERROR;
|
return CommandResult.STATE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean silent = args.remove("-s");
|
||||||
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
|
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
|
||||||
boolean silent = false;
|
|
||||||
|
|
||||||
if (args.contains("-s")) {
|
|
||||||
args.remove("-s");
|
|
||||||
silent = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load applicable groups
|
// Load applicable groups
|
||||||
Set<Node> nodes = user.getNodes().values().stream()
|
Set<Node> nodes = user.getNodes().values().stream()
|
||||||
|
@ -84,13 +84,8 @@ public class UserPromote extends SubCommand<User> {
|
|||||||
return CommandResult.STATE_ERROR;
|
return CommandResult.STATE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean silent = args.remove("-s");
|
||||||
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
|
MutableContextSet context = ArgumentUtils.handleContext(1, args, plugin);
|
||||||
boolean silent = false;
|
|
||||||
|
|
||||||
if (args.contains("-s")) {
|
|
||||||
args.remove("-s");
|
|
||||||
silent = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load applicable groups
|
// Load applicable groups
|
||||||
Set<Node> nodes = user.getNodes().values().stream()
|
Set<Node> nodes = user.getNodes().values().stream()
|
||||||
|
Loading…
Reference in New Issue
Block a user