Permissible
, ServerOperator
AbstractArrow
, AbstractHorse
, AbstractVillager
, Ageable
, Ambient
, Animals
, AreaEffectCloud
, ArmorStand
, Arrow
, Bat
, Bee
, Blaze
, BlockCommandSender
, Boat
, Boss
, Cat
, CaveSpider
, ChestedHorse
, Chicken
, Cod
, CommandMinecart
, ComplexEntityPart
, ComplexLivingEntity
, ConsoleCommandSender
, Cow
, Creature
, Creeper
, Damageable
, Dolphin
, Donkey
, DragonFireball
, Drowned
, Egg
, ElderGuardian
, EnderCrystal
, EnderDragon
, EnderDragonPart
, Enderman
, Endermite
, EnderPearl
, EnderSignal
, Entity
, Evoker
, EvokerFangs
, ExperienceOrb
, Explosive
, ExplosiveMinecart
, FallingBlock
, Fireball
, Firework
, Fish
, FishHook
, Flying
, Fox
, Ghast
, Giant
, Golem
, Guardian
, Hanging
, HopperMinecart
, Horse
, HumanEntity
, Husk
, Illager
, Illusioner
, IronGolem
, Item
, ItemFrame
, LargeFireball
, LeashHitch
, LightningStrike
, LingeringPotion
, LivingEntity
, Llama
, LlamaSpit
, MagmaCube
, MessageCommandSender
, Minecart
, Mob
, Monster
, Mule
, MushroomCow
, NPC
, Ocelot
, Painting
, Panda
, Parrot
, Phantom
, Pig
, PigZombie
, Pillager
, Player
, PolarBear
, PoweredMinecart
, Projectile
, ProxiedCommandSender
, PufferFish
, Rabbit
, Raider
, RangedEntity
, Ravager
, RemoteConsoleCommandSender
, RideableMinecart
, Salmon
, Sheep
, Shulker
, ShulkerBullet
, Silverfish
, SizedFireball
, Skeleton
, SkeletonHorse
, Slime
, SmallFireball
, Snowball
, Snowman
, SpawnerMinecart
, SpectralArrow
, Spellcaster
, Spider
, SplashPotion
, Squid
, StorageMinecart
, Stray
, Tameable
, ThrowableProjectile
, ThrownExpBottle
, ThrownPotion
, TippedArrow
, TNTPrimed
, TraderLlama
, Trident
, TropicalFish
, Turtle
, Vehicle
, Vex
, Villager
, Vindicator
, WanderingTrader
, WaterMob
, Witch
, Wither
, WitherSkeleton
, WitherSkull
, Wolf
, Zombie
, ZombieHorse
, ZombieVillager
BufferedCommandSender
, TimingsReportListener
public interface CommandSender extends Permissible
Modifier and Type | Interface | Description |
---|---|---|
static class |
CommandSender.Spigot |
Modifier and Type | Method | Description |
---|---|---|
@NotNull String |
getName() |
Gets the name of this command sender
|
@NotNull Server |
getServer() |
Returns the server instance that this command is running on
|
void |
sendMessage(@NotNull String message) |
Sends this sender a message
|
void |
sendMessage(@NotNull String[] messages) |
Sends this sender multiple messages
|
default void |
sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent... components) |
Sends an array of components as a single message to the sender
|
default void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent component) |
Sends the component to the sender
|
@NotNull CommandSender.Spigot |
spigot() |
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
void sendMessage(@NotNull @NotNull String message)
message
- Message to be displayedvoid sendMessage(@NotNull @NotNull String[] messages)
messages
- An array of messages to be displayed@NotNull @NotNull Server getServer()
@NotNull @NotNull String getName()
@NotNull @NotNull CommandSender.Spigot spigot()
default void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent component)
If this sender does not support sending full components then the component will be sent as legacy text.
component
- the component to senddefault void sendMessage(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... components)
If this sender does not support sending full components then the components will be sent as legacy text.
components
- the components to sendCopyright © 2020. All rights reserved.