LunaChat v3-k2 : Added UUIDCacheData feature.
このコミットが含まれているのは:
1 親
2091e4f66c
コミット
62ba2bab60
10ファイル変更
+166
-3
検索条件に一致するファイルはありません
@@ -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();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする