LunaChat v2.8.2 : Fixed issue #143
このコミットが含まれているのは:
1 親
2ca00098e5
コミット
e8d2583ac0
11ファイル変更
+81
-27
検索条件に一致するファイルはありません
@@ -8,6 +8,7 @@ package com.github.ucchyocean.lc.channel;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -186,6 +187,20 @@ public class ChannelPlayerUUID extends ChannelPlayer {
|
||||
return "-";
|
||||
}
|
||||
|
||||
/**
|
||||
* 発言者が今いる位置を取得する
|
||||
* @return 発言者の位置
|
||||
* @see com.github.ucchyocean.lc.channel.ChannelPlayer#getLocation()
|
||||
*/
|
||||
@Override
|
||||
public Location getLocation() {
|
||||
Player player = getPlayer();
|
||||
if ( player != null ) {
|
||||
return player.getLocation();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定されたパーミッションノードの権限を持っているかどうかを取得する
|
||||
* @param node パーミッションノード
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする