mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-13 06:06:28 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user