mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-02 11:36:59 +00:00
@ -2,6 +2,7 @@ package pw.yumc.YumCore.commands;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* 子命令参数类
|
||||
@ -43,6 +44,13 @@ public class CommandArgument {
|
||||
return command;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 命令发送者(转换为Player)
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
return (Player) sender;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 命令发送者
|
||||
*/
|
||||
|
Reference in New Issue
Block a user