diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSet.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSet.java index 0828afb3b..69ed26875 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSet.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSet.java @@ -58,8 +58,8 @@ public class PermissionSet extends SharedSubCommand { @Override public CommandResult execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder holder, List args, String label) throws CommandException { - String node = ArgumentUtils.handleNode(0, args); boolean b = ArgumentUtils.handleBoolean(1, args); + String node = b ? ArgumentUtils.handleNode(0, args) : ArgumentUtils.handleString(0, args); String server = ArgumentUtils.handleServer(2, args); String world = ArgumentUtils.handleWorld(3, args); diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSetTemp.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSetTemp.java index 883bb9dd2..2408ed937 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSetTemp.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionSetTemp.java @@ -63,8 +63,8 @@ public class PermissionSetTemp extends SharedSubCommand { @Override public CommandResult execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder holder, List args, String label) throws CommandException { - String node = ArgumentUtils.handleNode(0, args); boolean b = ArgumentUtils.handleBoolean(1, args); + String node = b ? ArgumentUtils.handleNode(0, args) : ArgumentUtils.handleString(0, args); long duration = ArgumentUtils.handleDuration(2, args); diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnset.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnset.java index 7f73c05e4..4834fa556 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnset.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnset.java @@ -54,7 +54,7 @@ public class PermissionUnset extends SharedSubCommand { @Override public CommandResult execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder holder, List args, String label) throws CommandException { - String node = ArgumentUtils.handleNode(0, args); + String node = ArgumentUtils.handleString(0, args); String server = ArgumentUtils.handleServer(1, args); String world = ArgumentUtils.handleWorld(2, args); diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnsetTemp.java b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnsetTemp.java index d1740493e..9e5b4ccd4 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnsetTemp.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/generic/permission/PermissionUnsetTemp.java @@ -54,7 +54,7 @@ public class PermissionUnsetTemp extends SharedSubCommand { @Override public CommandResult execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder holder, List args, String label) throws CommandException { - String node = ArgumentUtils.handleNode(0, args); + String node = ArgumentUtils.handleString(0, args); String server = ArgumentUtils.handleServer(1, args); String world = ArgumentUtils.handleWorld(2, args);