mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-02 23:53:25 +01:00
Fix global permissions and groups sometimes not applying
This commit is contained in:
parent
ac57509a29
commit
2c43f6bf21
@ -266,8 +266,8 @@ public class Node implements me.lucko.luckperms.api.Node {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldApplyOnServer(String server, boolean includeGlobal, boolean applyRegex) {
|
public boolean shouldApplyOnServer(String server, boolean includeGlobal, boolean applyRegex) {
|
||||||
if (server == null || server.equals("")) {
|
if (server == null || server.equals("") || server.equalsIgnoreCase("global")) {
|
||||||
return !isServerSpecific() && includeGlobal;
|
return !isServerSpecific();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isServerSpecific()) {
|
if (isServerSpecific()) {
|
||||||
@ -279,8 +279,8 @@ public class Node implements me.lucko.luckperms.api.Node {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldApplyOnWorld(String world, boolean includeGlobal, boolean applyRegex) {
|
public boolean shouldApplyOnWorld(String world, boolean includeGlobal, boolean applyRegex) {
|
||||||
if (world == null || world.equals("")) {
|
if (world == null || world.equals("") || world.equalsIgnoreCase("null")) {
|
||||||
return !isWorldSpecific() && includeGlobal;
|
return !isWorldSpecific();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWorldSpecific()) {
|
if (isWorldSpecific()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user