Fix removing temporary permissions/parents/meta in global context

This commit is contained in:
Luck 2017-03-25 19:58:56 +00:00
parent 5dcb8cd73a
commit 2573f46f40
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
4 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: