mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-23 19:16:31 +01:00
use world values for PEX chat returns.
This commit is contained in:
parent
87fd710a35
commit
463017d064
@ -226,7 +226,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
public String getPlayerPrefix(String world, String playerName) {
|
||||
PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName);
|
||||
if (user != null) {
|
||||
return user.getPrefix();
|
||||
return user.getPrefix(world);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@ -236,7 +236,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
public String getPlayerSuffix(String world, String playerName) {
|
||||
PermissionUser user = PermissionsEx.getPermissionManager().getUser(playerName);
|
||||
if (user != null) {
|
||||
return user.getSuffix();
|
||||
return user.getSuffix(world);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@ -262,7 +262,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
public String getGroupPrefix(String world, String group) {
|
||||
PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group);
|
||||
if (group != null) {
|
||||
return pGroup.getPrefix();
|
||||
return pGroup.getPrefix(world);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@ -281,7 +281,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
public String getGroupSuffix(String world, String group) {
|
||||
PermissionGroup pGroup = PermissionsEx.getPermissionManager().getGroup(group);
|
||||
if (group != null) {
|
||||
return pGroup.getSuffix();
|
||||
return pGroup.getSuffix(world);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user