mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Set giveDefault to true when running the 'clear' command
This commit is contained in:
parent
7474842b45
commit
5eb8a262be
@ -62,7 +62,7 @@ public class MetaClear extends SharedSubCommand {
|
||||
return CommandResult.NO_PERMISSION;
|
||||
}
|
||||
|
||||
NodeType type = null;
|
||||
NodeType<?> type = null;
|
||||
if (!args.isEmpty()) {
|
||||
String typeId = args.get(0).toLowerCase();
|
||||
if (typeId.equals("any") || typeId.equals("all") || typeId.equals("*")) {
|
||||
|
@ -72,9 +72,9 @@ public class HolderClear<T extends PermissionHolder> extends SubCommand<T> {
|
||||
}
|
||||
|
||||
if (context.isEmpty()) {
|
||||
holder.clearNodes(DataType.NORMAL, null, false);
|
||||
holder.clearNodes(DataType.NORMAL, null, true);
|
||||
} else {
|
||||
holder.clearNodes(DataType.NORMAL, context, false);
|
||||
holder.clearNodes(DataType.NORMAL, context, true);
|
||||
}
|
||||
|
||||
int changed = before - holder.normalData().immutable().size();
|
||||
|
Loading…
Reference in New Issue
Block a user