Maybe fix an issue with per-server prefixes/suffixes

This commit is contained in:
Luck 2016-09-11 14:34:38 +01:00
parent 9df39a9545
commit 116094ea96
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -118,10 +118,8 @@ public class VaultChatHook extends Chat {
continue;
}
if (!perms.getServer().equalsIgnoreCase("global")) {
if (!n.shouldApplyOnServer(perms.getServer(), perms.isIncludeGlobal(), false)) {
continue;
}
if (!n.shouldApplyOnServer(perms.getServer(), perms.isIncludeGlobal(), false)) {
continue;
}
if (!n.shouldApplyOnWorld(world, perms.isIncludeGlobal(), false)) {
@ -169,17 +167,15 @@ public class VaultChatHook extends Chat {
continue;
}
if (!perms.getServer().equalsIgnoreCase("global")) {
if (!n.shouldApplyOnServer(perms.getServer(), perms.isIncludeGlobal(), false)) {
continue;
}
}
if (!n.shouldApplyOnWorld(world, perms.isIncludeGlobal(), false)) {
if (prefix ? !n.isPrefix() : !n.isSuffix()) {
continue;
}
if (prefix ? !n.isPrefix() : !n.isSuffix()) {
if (!n.shouldApplyOnServer(perms.getServer(), perms.isIncludeGlobal(), false)) {
continue;
}
if (!n.shouldApplyOnWorld(world, perms.isIncludeGlobal(), false)) {
continue;
}