mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-28 03:48:17 +01:00
zPermissions: If chat prefix/suffix is unset, return empty string instead of null.
This commit is contained in:
parent
e9773ca281
commit
5c6fd1ff3a
@ -89,7 +89,7 @@ public class Chat_zPermissions extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPlayerPrefix(String world, String player) {
|
public String getPlayerPrefix(String world, String player) {
|
||||||
return service.getPlayerMetadata(player, "prefix", String.class);
|
return getPlayerInfoString(world, player, "prefix", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -99,7 +99,7 @@ public class Chat_zPermissions extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPlayerSuffix(String world, String player) {
|
public String getPlayerSuffix(String world, String player) {
|
||||||
return service.getPlayerMetadata(player, "suffix", String.class);
|
return getPlayerInfoString(world, player, "suffix", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -109,7 +109,7 @@ public class Chat_zPermissions extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGroupPrefix(String world, String group) {
|
public String getGroupPrefix(String world, String group) {
|
||||||
return service.getGroupMetadata(group, "prefix", String.class);
|
return getGroupInfoString(world, group, "prefix", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -119,7 +119,7 @@ public class Chat_zPermissions extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGroupSuffix(String world, String group) {
|
public String getGroupSuffix(String world, String group) {
|
||||||
return service.getGroupMetadata(group, "suffix", String.class);
|
return getGroupInfoString(world, group, "suffix", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user