Interface CommandSender
- All Superinterfaces:
Audience, Permissible, Pointered, ServerOperator
- All Known Subinterfaces:
AbstractArrow, AbstractCow, AbstractCubeMob, AbstractHorse, AbstractNautilus, 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, Bucketable, Camel, CamelHusk, Cat, CaveSpider, CherryBoat, CherryChestBoat, ChestBoat, ChestedHorse, Chicken, Cod, CollarColorable, CommandMinecart, ComplexEntityPart, ComplexLivingEntity, ConsoleCommandSender, CopperGolem, Cow, Creaking, 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, HappyGhast, Hoglin, HopperMinecart, Horse, HumanEntity, Husk, Illager, Illusioner, Interaction, IronGolem, Item, ItemDisplay, ItemFrame, JungleBoat, JungleChestBoat, LargeFireball, Leashable, LeashHitch, LightningStrike, LingeringPotion, LivingEntity, Llama, LlamaSpit, MagmaCube, MangroveBoat, MangroveChestBoat, Mannequin, Marker, MessageCommandSender, Minecart, Mob, Monster, Mule, MushroomCow, Nautilus, NPC, OakBoat, OakChestBoat, Ocelot, OminousItemSpawner, Painting, PaleOakBoat, PaleOakChestBoat, Panda, Parched, Parrot, Phantom, Pig, Piglin, PiglinAbstract, PiglinBrute, PigZombie, Pillager, Player, PolarBear, PoweredMinecart, Projectile, ProxiedCommandSender, PufferFish, Rabbit, Raider, RangedEntity, Ravager, RemoteConsoleCommandSender, RideableMinecart, Salmon, SchoolableFish, Shearable, Sheep, Shulker, ShulkerBullet, Silverfish, Sittable, SizedFireball, Skeleton, SkeletonHorse, Slime, SmallFireball, Sniffer, Snowball, Snowman, SpawnerMinecart, SpectralArrow, Spellcaster, Spider, SplashPotion, SpruceBoat, SpruceChestBoat, Squid, Steerable, StorageMinecart, Stray, Strider, SulfurCube, 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, ZombieNautilus, ZombieVillager
- All Known Implementing Classes:
BufferedCommandSender, TimingsReportListener
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of this command senderReturns the server instance that this command is running onname()Gets the name of this command sendervoidsendMessage(@NotNull String message) Sends this sender a messagevoidsendMessage(@NotNull String... messages) Sends this sender multiple messagesvoidsendMessage(@Nullable UUID sender, @NotNull String message) Deprecated.sender UUID is ignoredvoidsendMessage(@Nullable UUID sender, @NotNull String... messages) Deprecated.sender UUID is ignoreddefault voidsendMessage(@NotNull SignedMessage signedMessage, @NotNull ChatType.Bound boundChatType) default voidsendMessage(@NotNull Component message) default voidsendMessage(@NotNull Component message, @NotNull ChatType.Bound boundChatType) default voidsendMessage(net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessage(Component)insteaddefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessage(Component)insteaddefault voidsendPlainMessage(@NotNull String message) Sends a plain message to the command sender.default voidsendRichMessage(@NotNull String message) Sends a message with the MiniMessage format to the command sender.default voidsendRichMessage(@NotNull String message, @NotNull TagResolver... resolvers) Sends a message with the MiniMessage format to the command sender.spigot()Methods inherited from interface Audience
clearResourcePacks, clearTitle, closeDialog, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface ServerOperator
isOp, setOp
-
Method Details
-
sendMessage
-
sendMessage
-
sendMessage
-
sendMessage
-
getServer
-
getName
-
spigot
-
name
-
sendMessage
- Specified by:
sendMessagein interfaceAudience
-
sendMessage
default void sendMessage(@NotNull @NotNull Component message, @NotNull ChatType.Bound boundChatType) - Specified by:
sendMessagein interfaceAudience
-
sendMessage
default void sendMessage(@NotNull @NotNull SignedMessage signedMessage, @NotNull ChatType.Bound boundChatType) - Specified by:
sendMessagein interfaceAudience
-
sendRichMessage
Sends a message with the MiniMessage format to the command sender.See MiniMessage docs for more information on the format.
- Parameters:
message- MiniMessage content
-
sendRichMessage
Sends a message with the MiniMessage format to the command sender.See MiniMessage docs and MiniMessage Placeholders docs for more information on the format.
- Parameters:
message- MiniMessage contentresolvers- resolvers to use
-
sendPlainMessage
-
sendMessage
Deprecated.usesendMessage(Component)insteadSends the component to the senderIf this sender does not support sending full components then the component will be sent as legacy text.
- Parameters:
component- the component to send
-
sendMessage
Deprecated.usesendMessage(Component)insteadSends an array of components as a single message to the senderIf this sender does not support sending full components then the components will be sent as legacy text.
- Parameters:
components- the components to send
-