LunaChat v3-k2 : Added UUIDCacheData feature.

このコミットが含まれているのは:
ucchy committed 2020-06-09 01:40:52 +09:00
1 親 2091e4f66c
コミット 62ba2bab60
10ファイル変更
+166 -3

検索条件に一致するファイルはありません

+5
ファイルの表示
@@ -14,6 +14,7 @@ import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.github.ucchyocean.lc3.LunaChat;
import com.github.ucchyocean.lc3.bridge.VaultChatBridge;
import com.github.ucchyocean.lc3.bukkit.LunaChatBukkit;
@@ -88,6 +89,10 @@ public class ChannelMemberPlayer extends ChannelMemberBukkit {
*/
@Override
public String getName() {
String cache = LunaChat.getUUIDCacheData().get(id.toString());
if ( cache != null ) {
return cache;
}
Player player = Bukkit.getPlayer(id);
if ( player != null ) {
return player.getName();