Package org.bukkit.command
Interface CommandSender
- All Superinterfaces:
Permissible
,ServerOperator
- All Known Subinterfaces:
AbstractArrow
,AbstractHorse
,AbstractSkeleton
,AbstractVillager
,AbstractWindCharge
,AcaciaBoat
,AcaciaChestBoat
,Ageable
,Allay
,Ambient
,Animals
,AreaEffectCloud
,Armadillo
,ArmorStand
,Arrow
,Axolotl
,BambooChestRaft
,BambooRaft
,Bat
,Bee
,BirchBoat
,BirchChestBoat
,Blaze
,BlockCommandSender
,BlockDisplay
,Boat
,Bogged
,Boss
,Breedable
,Breeze
,BreezeWindCharge
,Camel
,Cat
,CaveSpider
,CherryBoat
,CherryChestBoat
,ChestBoat
,ChestedHorse
,Chicken
,Cod
,CommandMinecart
,ComplexEntityPart
,ComplexLivingEntity
,ConsoleCommandSender
,Cow
,Creaking
,CreakingTransient
,Creature
,Creeper
,Damageable
,DarkOakBoat
,DarkOakChestBoat
,Display
,Dolphin
,Donkey
,DragonFireball
,Drowned
,Egg
,ElderGuardian
,EnderCrystal
,EnderDragon
,EnderDragonPart
,Enderman
,Endermite
,EnderPearl
,EnderSignal
,Enemy
,Entity
,Evoker
,EvokerFangs
,ExperienceOrb
,Explosive
,ExplosiveMinecart
,FallingBlock
,Fireball
,Firework
,Fish
,FishHook
,Flying
,Fox
,Frog
,Ghast
,Giant
,GlowItemFrame
,GlowSquid
,Goat
,Golem
,Guardian
,Hanging
,Hoglin
,HopperMinecart
,Horse
,HumanEntity
,Husk
,Illager
,Illusioner
,Interaction
,IronGolem
,Item
,ItemDisplay
,ItemFrame
,JungleBoat
,JungleChestBoat
,LargeFireball
,LeashHitch
,LightningStrike
,LingeringPotion
,LivingEntity
,Llama
,LlamaSpit
,MagmaCube
,MangroveBoat
,MangroveChestBoat
,Marker
,Minecart
,Mob
,Monster
,Mule
,MushroomCow
,NPC
,OakBoat
,OakChestBoat
,Ocelot
,OminousItemSpawner
,Painting
,PaleOakBoat
,PaleOakChestBoat
,Panda
,Parrot
,Phantom
,Pig
,Piglin
,PiglinAbstract
,PiglinBrute
,PigZombie
,Pillager
,Player
,PolarBear
,PoweredMinecart
,Projectile
,ProxiedCommandSender
,PufferFish
,Rabbit
,Raider
,Ravager
,RemoteConsoleCommandSender
,RideableMinecart
,Salmon
,Sheep
,Shulker
,ShulkerBullet
,Silverfish
,SizedFireball
,Skeleton
,SkeletonHorse
,Slime
,SmallFireball
,Sniffer
,Snowball
,Snowman
,SpawnerMinecart
,SpectralArrow
,Spellcaster
,Spider
,SplashPotion
,SpruceBoat
,SpruceChestBoat
,Squid
,Steerable
,StorageMinecart
,Stray
,Strider
,Tadpole
,Tameable
,TextDisplay
,ThrowableProjectile
,ThrownExpBottle
,ThrownPotion
,TippedArrow
,TNTPrimed
,TraderLlama
,Trident
,TropicalFish
,Turtle
,Vehicle
,Vex
,Villager
,Vindicator
,WanderingTrader
,Warden
,WaterMob
,WindCharge
,Witch
,Wither
,WitherSkeleton
,WitherSkull
,Wolf
,Zoglin
,Zombie
,ZombieHorse
,ZombieVillager
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name of this command senderReturns the server instance that this command is running onvoid
sendMessage
(String message) Sends this sender a messagevoid
sendMessage
(String... messages) Sends this sender multiple messagesvoid
sendMessage
(UUID sender, String message) Sends this sender a messagevoid
sendMessage
(UUID sender, String... messages) Sends this sender multiple messagesspigot()
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
sendMessage
Sends this sender a message- Parameters:
message
- Message to be displayed
-
sendMessage
Sends this sender multiple messages- Parameters:
messages
- An array of messages to be displayed
-
sendMessage
Sends this sender a message- Parameters:
sender
- The sender of this messagemessage
- Message to be displayed
-
sendMessage
Sends this sender multiple messages- Parameters:
sender
- The sender of this messagemessages
- An array of messages to be displayed
-
getServer
Returns the server instance that this command is running on- Returns:
- Server instance
-
getName
Gets the name of this command sender- Returns:
- Name of the sender
-
spigot
-