From 5eb8a262be3dca242fa78e5582f3aa6db16b90ad Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 14 Dec 2019 17:22:48 +0000 Subject: [PATCH] Set giveDefault to true when running the 'clear' command --- .../luckperms/common/commands/generic/meta/MetaClear.java | 2 +- .../luckperms/common/commands/generic/other/HolderClear.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/meta/MetaClear.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/meta/MetaClear.java index ad69b1d65..ec57555e5 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/meta/MetaClear.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/meta/MetaClear.java @@ -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("*")) { diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/other/HolderClear.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/other/HolderClear.java index 193ed5f1a..f950551e1 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/other/HolderClear.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/other/HolderClear.java @@ -72,9 +72,9 @@ public class HolderClear extends SubCommand { } 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();