mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 09:54:21 +00:00
Use group.<name> instead of luckperms.group.<name> to indicate group membership
This commit is contained in:
1 parent
776ec45701
commit
3c83c31e9f
12 files changed
+22
-22
No files matched your search
@@ -175,7 +175,7 @@ public abstract class PermissionObject {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (parts[1].matches("luckperms\\.group\\..*")) {
|
||||
if (parts[1].matches("group\\..*")) {
|
||||
// SERVER SPECIFIC AND GROUP
|
||||
serverSpecificGroups.put(node.getKey(), node.getValue());
|
||||
continue;
|
||||
@@ -189,7 +189,7 @@ public abstract class PermissionObject {
|
||||
// Skip adding global permissions if they are not requested
|
||||
if (!includeGlobal) continue;
|
||||
|
||||
if (node.getKey().matches("luckperms\\.group\\..*")) {
|
||||
if (node.getKey().matches("group\\..*")) {
|
||||
// GROUP
|
||||
groupNodes.put(node.getKey(), node.getValue());
|
||||
continue;
|
||||
@@ -214,7 +214,7 @@ public abstract class PermissionObject {
|
||||
// Don't add negated groups
|
||||
if (!groupNode.getValue()) continue;
|
||||
|
||||
String groupName = groupNode.getKey().split("\\.", 3)[2];
|
||||
String groupName = groupNode.getKey().split("\\.", 2)[1];
|
||||
if (!excludedGroups.contains(groupName)) {
|
||||
Group group = plugin.getGroupManager().getGroup(groupName);
|
||||
if (group != null) {
|
||||
@@ -236,7 +236,7 @@ public abstract class PermissionObject {
|
||||
// Don't add negated groups
|
||||
if (!groupNode.getValue()) continue;
|
||||
|
||||
String groupName = rawNode.split("\\.", 3)[2];
|
||||
String groupName = rawNode.split("\\.", 2)[1];
|
||||
if (!excludedGroups.contains(groupName)) {
|
||||
Group group = plugin.getGroupManager().getGroup(groupName);
|
||||
if (group != null) {
|
||||
|
||||
Reference in new issue
Block a user