1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-22 01:48:50 +00:00

feat: 添加获取玩家

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-30 19:25:49 +08:00
parent a30767c875
commit f5a9fc1131

View File

@ -2,6 +2,7 @@ package pw.yumc.YumCore.commands;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/** /**
* 子命令参数类 * 子命令参数类
@ -43,6 +44,13 @@ public class CommandArgument {
return command; return command;
} }
/**
* @return 命令发送者(转换为Player)
*/
public Player getPlayer() {
return (Player) sender;
}
/** /**
* @return 命令发送者 * @return 命令发送者
*/ */