mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Ignore negated primary group override nodes & fix broken message
This commit is contained in:
parent
ba2f6eb7be
commit
17b06c39e9
@ -327,6 +327,10 @@ public class VaultPermissionHook extends Permission {
|
|||||||
if (pgoCheckInherited) {
|
if (pgoCheckInherited) {
|
||||||
PermissionData data = user.getUserData().getPermissionData(createContext(server, world));
|
PermissionData data = user.getUserData().getPermissionData(createContext(server, world));
|
||||||
for (Map.Entry<String, Boolean> e : data.getImmutableBacking().entrySet()) {
|
for (Map.Entry<String, Boolean> e : data.getImmutableBacking().entrySet()) {
|
||||||
|
if (!e.getValue()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!e.getKey().toLowerCase().startsWith("vault.primarygroup.")) {
|
if (!e.getKey().toLowerCase().startsWith("vault.primarygroup.")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -348,6 +352,10 @@ public class VaultPermissionHook extends Permission {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (LocalizedNode node : user.getPermissions(true)) {
|
for (LocalizedNode node : user.getPermissions(true)) {
|
||||||
|
if (!node.getValue()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!node.getPermission().toLowerCase().startsWith("vault.primarygroup.")) {
|
if (!node.getPermission().toLowerCase().startsWith("vault.primarygroup.")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ public enum Message {
|
|||||||
UNSET_TEMP_PERMISSION_SERVER_WORLD_SUCCESS("&aUnset temporary permission &b{0}&a for &b{1}&a on server &b{2}&a, world &b{3}&a.", true),
|
UNSET_TEMP_PERMISSION_SERVER_WORLD_SUCCESS("&aUnset temporary permission &b{0}&a for &b{1}&a on server &b{2}&a, world &b{3}&a.", true),
|
||||||
|
|
||||||
SET_INHERIT_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a.", true),
|
SET_INHERIT_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a.", true),
|
||||||
SET_INHERIT_SERVER_SUCCESS("&b{0}&a now inherits permissions from &b{2}&a on server &b{3}&a.", true),
|
SET_INHERIT_SERVER_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a on server &b{2}&a.", true),
|
||||||
SET_INHERIT_SERVER_WORLD_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a on server &b{2}&a, world &b{3}&a.", true),
|
SET_INHERIT_SERVER_WORLD_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a on server &b{2}&a, world &b{3}&a.", true),
|
||||||
SET_TEMP_INHERIT_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a for a duration of &b{2}&a.", true),
|
SET_TEMP_INHERIT_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a for a duration of &b{2}&a.", true),
|
||||||
SET_TEMP_INHERIT_SERVER_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a on server &b{2}&a for a duration of &b{3}&a.", true),
|
SET_TEMP_INHERIT_SERVER_SUCCESS("&b{0}&a now inherits permissions from &b{1}&a on server &b{2}&a for a duration of &b{3}&a.", true),
|
||||||
|
Loading…
Reference in New Issue
Block a user