From 4c11c280317433b283eab1f6d11e8d2b76bafb5a Mon Sep 17 00:00:00 2001 From: Sleaker Date: Fri, 28 Oct 2011 16:25:12 -0700 Subject: [PATCH] fix blank returns for bPermission info nodes --- .../vault/chat/plugins/Chat_bPermissions.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net/milkbowl/vault/chat/plugins/Chat_bPermissions.java b/src/net/milkbowl/vault/chat/plugins/Chat_bPermissions.java index 231c461..463ade8 100644 --- a/src/net/milkbowl/vault/chat/plugins/Chat_bPermissions.java +++ b/src/net/milkbowl/vault/chat/plugins/Chat_bPermissions.java @@ -107,7 +107,7 @@ public class Chat_bPermissions extends Chat { @Override public String getPlayerPrefix(String world, String player) { - return chat.getPrefix(player, world); + return getPlayerInfoString(player, world, "prefix", null); } @Override @@ -117,7 +117,7 @@ public class Chat_bPermissions extends Chat { @Override public String getPlayerSuffix(String world, String player) { - return chat.getSuffix(player, world); + return getPlayerInfoString(player, world, "suffix", null); } @Override @@ -127,7 +127,7 @@ public class Chat_bPermissions extends Chat { @Override public String getGroupPrefix(String world, String group) { - return chat.getGroupPrefix(group, world); + return getGroupInfoString(group, world, "prefix", null); } @Override @@ -137,7 +137,7 @@ public class Chat_bPermissions extends Chat { @Override public String getGroupSuffix(String world, String group) { - return chat.getGroupSuffix(group, world); + return getGroupInfoString(group, world, "suffix", null); } @Override @@ -256,7 +256,7 @@ public class Chat_bPermissions extends Chat { @Override public String getPlayerInfoString(String world, String player, String node, String defaultValue) { String val = chat.getValue(player, world, node); - return val == null ? defaultValue : val; + return (val == null || val == "BLANKWORLD") ? defaultValue : val; } @Override @@ -267,7 +267,7 @@ public class Chat_bPermissions extends Chat { @Override public String getGroupInfoString(String world, String group, String node, String defaultValue) { String val = chat.getGroupValue(group, world, node); - return val == null ? defaultValue : val; + return (val == null || val == "BLANKWORLD") ? defaultValue : val; } @Override