Skip to content

Commit

Permalink
LunaChat v3.0.14 : Fixed issue #209
Browse files Browse the repository at this point in the history
  • Loading branch information
ucchyocean committed Sep 12, 2020
1 parent 5f5a8c2 commit 274415a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public static BungeePermsBridge load(Plugin plugin) {
* @return the full prefix; may be null
*/
public String userPrefix(String nameoruuid, String server, String world) {
return BungeePermsAPI.userPrefix(nameoruuid, server, world);
String prefix = BungeePermsAPI.userPrefix(nameoruuid, server, world);
return (prefix != null) ? prefix : "";
}

/**
Expand All @@ -51,6 +52,7 @@ public String userPrefix(String nameoruuid, String server, String world) {
* @return the full suffix; may be null
*/
public String userSuffix(String nameoruuid, String server, String world) {
return BungeePermsAPI.userSuffix(nameoruuid, server, world);
String suffix = BungeePermsAPI.userSuffix(nameoruuid, server, world);
return (suffix != null) ? suffix : "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public static VaultChatBridge load(Plugin plugin) {
* @return プレイヤーのprefix
*/
public String getPlayerPrefix(Player player) {
return chatPlugin.getPlayerPrefix(player);
String prefix = chatPlugin.getPlayerPrefix(player);
return (prefix != null) ? prefix : "";
}

/**
Expand All @@ -58,6 +59,7 @@ public String getPlayerPrefix(Player player) {
* @return プレイヤーのsuffix
*/
public String getPlayerSuffix(Player player) {
return chatPlugin.getPlayerSuffix(player);
String suffix = chatPlugin.getPlayerSuffix(player);
return (suffix != null) ? suffix : "";
}
}

0 comments on commit 274415a

Please sign in to comment.