Use group.<name> instead of luckperms.group.<name> to indicate group membership

This commit is contained in:
Luck
2016-06-29 11:57:55 +01:00
Unverified
parent 776ec45701
commit 3c83c31e9f
12 changed files with 22 additions and 22 deletions
@@ -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) {
@@ -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;
}
@@ -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;
}
@@ -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) {
@@ -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;
}
@@ -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;
}