LunaChat v2.8.2 : Fixed issue #143

このコミットが含まれているのは:
ucchy committed 2016-04-16 18:20:57 +09:00
1 親 2ca00098e5
コミット e8d2583ac0
11ファイル変更
+81 -27

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

+15
ファイルの表示
@@ -6,6 +6,7 @@
package com.github.ucchyocean.lc.channel;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -136,6 +137,20 @@ public class ChannelPlayerName 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 パーミッションノード