public interface CommandSender extends net.kyori.adventure.audience.Audience, Permissible
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommandSender.Spigot |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getName()
Gets the name of this command sender
|
@NotNull Server |
getServer()
Returns the server instance that this command is running on
|
default void |
sendMessage(BaseComponent... components)
Deprecated.
use
sendMessage(Identity, Component, MessageType) instead |
default void |
sendMessage(BaseComponent component)
Deprecated.
use
sendMessage(Identity, Component, MessageType) instead |
default void |
sendMessage(net.kyori.adventure.identity.Identity identity,
net.kyori.adventure.text.Component message,
net.kyori.adventure.audience.MessageType type) |
void |
sendMessage(@NotNull String message)
Sends this sender a message
|
void |
sendMessage(@NotNull String[] messages)
Sends this sender multiple messages
|
void |
sendMessage(@Nullable UUID sender,
@NotNull String message)
Sends this sender a message
|
void |
sendMessage(@Nullable UUID sender,
@NotNull String[] messages)
Sends this sender multiple messages
|
@NotNull CommandSender.Spigot |
spigot() |
audience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudienceaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpvoid sendMessage(@NotNull @NotNull String message)
message - Message to be displayedAudience.sendMessage(net.kyori.adventure.text.Component)void sendMessage(@NotNull @NotNull String[] messages)
messages - An array of messages to be displayedAudience.sendMessage(net.kyori.adventure.text.Component)void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String message)
message - Message to be displayedsender - The sender of this messageAudience.sendMessage(net.kyori.adventure.identity.Identified, net.kyori.adventure.text.Component)void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String[] messages)
messages - An array of messages to be displayedsender - The sender of this messageAudience.sendMessage(net.kyori.adventure.identity.Identified, net.kyori.adventure.text.Component)@NotNull @NotNull Server getServer()
@NotNull @NotNull String getName()
@NotNull @NotNull CommandSender.Spigot spigot()
default void sendMessage(@NotNull net.kyori.adventure.identity.Identity identity, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type)
sendMessage in interface net.kyori.adventure.audience.Audience@Deprecated default void sendMessage(@NotNull BaseComponent component)
sendMessage(Identity, Component, MessageType) insteadIf this sender does not support sending full components then the component will be sent as legacy text.
component - the component to send@Deprecated default void sendMessage(@NotNull BaseComponent... components)
sendMessage(Identity, Component, MessageType) insteadIf this sender does not support sending full components then the components will be sent as legacy text.
components - the components to sendCopyright © 2021. All rights reserved.