use world values for PEX chat returns.

This commit is contained in:
Sleaker 2012-01-09 23:25:24 -08:00
parent 87fd710a35
commit 463017d064

View File

@ -226,7 +226,7 @@ public class Chat_PermissionsEx extends Chat {
public String getPlayerPrefix(String world, String playerName) { public String getPlayerPrefix(String world, String playerName) {
PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName); PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName);
if (user != null) { if (user != null) {
return user.getPrefix(); return user.getPrefix(world);
} else { } else {
return null; return null;
} }
@ -236,7 +236,7 @@ public class Chat_PermissionsEx extends Chat {
public String getPlayerSuffix(String world, String playerName) { public String getPlayerSuffix(String world, String playerName) {
PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName); PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName);
if (user != null) { if (user != null) {
return user.getSuffix(); return user.getSuffix(world);
} else { } else {
return null; return null;
} }
@ -262,7 +262,7 @@ public class Chat_PermissionsEx extends Chat {
public String getGroupPrefix(String world, String group) { public String getGroupPrefix(String world, String group) {
PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group); PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group);
if (group != null) { if (group != null) {
return pGroup.getPrefix(); return pGroup.getPrefix(world);
} else { } else {
return null; return null;
} }
@ -281,7 +281,7 @@ public class Chat_PermissionsEx extends Chat {
public String getGroupSuffix(String world, String group) { public String getGroupSuffix(String world, String group) {
PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group); PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group);
if (group != null) { if (group != null) {
return pGroup.getSuffix(); return pGroup.getSuffix(world);
} else { } else {
return null; return null;
} }