diff --git a/src/main/java/com/github/ucchyocean/lc3/bridge/BungeePermsBridge.java b/src/main/java/com/github/ucchyocean/lc3/bridge/BungeePermsBridge.java index be03ffd..886bfa4 100644 --- a/src/main/java/com/github/ucchyocean/lc3/bridge/BungeePermsBridge.java +++ b/src/main/java/com/github/ucchyocean/lc3/bridge/BungeePermsBridge.java @@ -40,7 +40,8 @@ public class BungeePermsBridge { * @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 : ""; } /** @@ -51,6 +52,7 @@ public class BungeePermsBridge { * @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 : ""; } } diff --git a/src/main/java/com/github/ucchyocean/lc3/bridge/VaultChatBridge.java b/src/main/java/com/github/ucchyocean/lc3/bridge/VaultChatBridge.java index f2e6d6e..8207522 100644 --- a/src/main/java/com/github/ucchyocean/lc3/bridge/VaultChatBridge.java +++ b/src/main/java/com/github/ucchyocean/lc3/bridge/VaultChatBridge.java @@ -49,7 +49,8 @@ public class VaultChatBridge { * @return プレイヤーのprefix */ public String getPlayerPrefix(Player player) { - return chatPlugin.getPlayerPrefix(player); + String prefix = chatPlugin.getPlayerPrefix(player); + return (prefix != null) ? prefix : ""; } /** @@ -58,6 +59,7 @@ public class VaultChatBridge { * @return プレイヤーのsuffix */ public String getPlayerSuffix(Player player) { - return chatPlugin.getPlayerSuffix(player); + String suffix = chatPlugin.getPlayerSuffix(player); + return (suffix != null) ? suffix : ""; } }