接口 CommandSender
- 所有超级接口:
Permissible
,ServerOperator
- 所有已知子接口:
AbstractHorse
,Ageable
,Ambient
,Animals
,AreaEffectCloud
,ArmorStand
,Arrow
,Bat
,Blaze
,BlockCommandSender
,Boat
,CaveSpider
,ChestedHorse
,Chicken
,CommandMinecart
,ComplexEntityPart
,ComplexLivingEntity
,ConsoleCommandSender
,Cow
,Creature
,Creeper
,Damageable
,Donkey
,DragonFireball
,Egg
,ElderGuardian
,EnderCrystal
,EnderDragon
,EnderDragonPart
,Enderman
,Endermite
,EnderPearl
,EnderSignal
,Entity
,Evoker
,EvokerFangs
,ExperienceOrb
,Explosive
,ExplosiveMinecart
,FallingBlock
,Fireball
,Firework
,Fish
,FishHook
,Flying
,Ghast
,Giant
,Golem
,Guardian
,Hanging
,HopperMinecart
,Horse
,HumanEntity
,Husk
,Illager
,Illusioner
,IronGolem
,Item
,ItemFrame
,LargeFireball
,LeashHitch
,LightningStrike
,LingeringPotion
,LivingEntity
,Llama
,LlamaSpit
,MagmaCube
,Minecart
,Monster
,Mule
,MushroomCow
,NPC
,Ocelot
,Painting
,Parrot
,Pig
,PigZombie
,Player
,PolarBear
,PoweredMinecart
,Projectile
,ProxiedCommandSender
,Rabbit
,RemoteConsoleCommandSender
,RideableMinecart
,Sheep
,Shulker
,ShulkerBullet
,Silverfish
,Skeleton
,SkeletonHorse
,Slime
,SmallFireball
,Snowball
,Snowman
,SpawnerMinecart
,SpectralArrow
,Spellcaster
,Spider
,SplashPotion
,Squid
,StorageMinecart
,Stray
,Tameable
,ThrownExpBottle
,ThrownPotion
,TippedArrow
,TNTPrimed
,Vehicle
,Vex
,Villager
,Vindicator
,WaterMob
,Weather
,Witch
,Wither
,WitherSkeleton
,WitherSkull
,Wolf
,Zombie
,ZombieHorse
,ZombieVillager
-
方法概要
修饰符和类型方法说明getName()
获取命令发送者的名字.返回服务器运行此命令的对象.void
sendMessage
(String message) 给命令发送者发送消息.void
sendMessage
(String[] messages) 给命令发送者发送多条消息.从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
sendMessage
给命令发送者发送消息.原文: Sends this sender a message
- 参数:
message
- 要显示的消息
-
sendMessage
给命令发送者发送多条消息.原文: Sends this sender multiple messages
- 参数:
messages
- 要显示的消息(必须为数组)
-
getServer
Server getServer()返回服务器运行此命令的对象.原文: Returns the server instance that this command is running on
- 返回:
- 服务器对象
-
getName
String getName()获取命令发送者的名字.原文: Gets the name of this command sender
- 返回:
- 发送者的名字
-