Fix global permissions and groups sometimes not applying

This commit is contained in:
Luck 2016-10-11 19:31:55 +01:00
parent ac57509a29
commit 2c43f6bf21
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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()) {