mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix removing temporary permissions/parents/meta in global context
This commit is contained in:
parent
5dcb8cd73a
commit
2573f46f40
@ -101,7 +101,7 @@ public class MetaRemoveTempPrefix extends SharedSubCommand {
|
||||
try {
|
||||
switch (ContextHelper.determine(server, world)) {
|
||||
case NONE:
|
||||
holder.unsetPermission(NodeFactory.make(node, true));
|
||||
holder.unsetPermission(NodeFactory.make(node, true, true));
|
||||
Message.REMOVE_TEMP_PREFIX_SUCCESS.send(sender, holder.getFriendlyName(), prefix, priority);
|
||||
break;
|
||||
case SERVER:
|
||||
|
@ -101,7 +101,7 @@ public class MetaRemoveTempSuffix extends SharedSubCommand {
|
||||
try {
|
||||
switch (ContextHelper.determine(server, world)) {
|
||||
case NONE:
|
||||
holder.unsetPermission(NodeFactory.make(node, true));
|
||||
holder.unsetPermission(NodeFactory.make(node, true, true));
|
||||
Message.REMOVE_TEMP_SUFFIX_SUCCESS.send(sender, holder.getFriendlyName(), suffix, priority);
|
||||
break;
|
||||
case SERVER:
|
||||
|
@ -64,7 +64,7 @@ public class ParentRemoveTemp extends SharedSubCommand {
|
||||
try {
|
||||
switch (ContextHelper.determine(server, world)) {
|
||||
case NONE:
|
||||
holder.unsetPermission(NodeFactory.make("group." + groupName, true));
|
||||
holder.unsetPermission(NodeFactory.make("group." + groupName, true, true));
|
||||
Message.UNSET_TEMP_INHERIT_SUCCESS.send(sender, holder.getFriendlyName(), groupName);
|
||||
break;
|
||||
case SERVER:
|
||||
|
@ -79,7 +79,7 @@ public class PermissionUnsetTemp extends SharedSubCommand {
|
||||
} else {
|
||||
switch (ContextHelper.determine(server, world)) {
|
||||
case NONE:
|
||||
holder.unsetPermission(NodeFactory.make(node, true));
|
||||
holder.unsetPermission(NodeFactory.make(node, true, true));
|
||||
Message.UNSET_TEMP_PERMISSION_SUCCESS.send(sender, node, holder.getFriendlyName());
|
||||
break;
|
||||
case SERVER:
|
||||
|
Loading…
Reference in New Issue
Block a user