Use group.<name> instead of luckperms.group.<name> to indicate group membership
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ public class GroupSetInheritCommand extends GroupSubCommand {
|
||||
if (!success) {
|
||||
Util.sendPluginMessage(sender, groupName + " does not exist!");
|
||||
} else {
|
||||
final String node = "luckperms.group." + groupName;
|
||||
final String node = "group." + groupName;
|
||||
|
||||
try {
|
||||
if (args.size() == 2) {
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ public class GroupSetPermissionCommand extends GroupSubCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node.matches(".*luckperms\\.group\\..*")) {
|
||||
if (node.matches("group\\..*")) {
|
||||
Util.sendPluginMessage(sender, "Use the inherit command instead of specifying the node.");
|
||||
return;
|
||||
}
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ public class GroupUnSetPermissionCommand extends GroupSubCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node.matches(".*luckperms\\.group\\..*")) {
|
||||
Util.sendPluginMessage(sender, "Use the uninherit command instead of specifying the node.");
|
||||
if (node.matches("group\\..*")) {
|
||||
Util.sendPluginMessage(sender, "Use the unsetinherit command instead of specifying the node.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class GroupUnsetInheritCommand extends GroupSubCommand {
|
||||
}
|
||||
|
||||
try {
|
||||
group.unsetPermission("luckperms.group." + groupName, server);
|
||||
group.unsetPermission("group." + groupName, server);
|
||||
Util.sendPluginMessage(sender, "&b" + group.getName() + "&a no longer inherits permissions from &b" + groupName + "&a on server &b" + server + "&a.");
|
||||
saveGroup(group, sender, plugin);
|
||||
} catch (ObjectLacksPermissionException e) {
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ public class UserSetPermissionCommand extends UserSubCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node.matches(".*luckperms\\.group\\..*")) {
|
||||
if (node.matches("group\\..*")) {
|
||||
Util.sendPluginMessage(sender, "Use the addgroup command instead of specifying the node.");
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ public class UserUnSetPermissionCommand extends UserSubCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node.matches(".*luckperms\\.group\\..*")) {
|
||||
if (node.matches("group\\..*")) {
|
||||
Util.sendPluginMessage(sender, "Use the removegroup command instead of specifying the node.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user