public interface CommandSender extends Permissible
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommandSender.Spigot |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of this command sender
|
Server |
getServer()
Returns the server instance that this command is running on
|
default void |
sendMessage(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
|
void |
sendMessage(String message)
Sends this sender a message
|
void |
sendMessage(String[] messages)
Sends this sender multiple messages
|
CommandSender.Spigot |
spigot() |
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpvoid sendMessage(String message)
message - Message to be displayedvoid sendMessage(String[] messages)
messages - An array of messages to be displayedServer getServer()
String getName()
CommandSender.Spigot spigot()
default void sendMessage(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(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 © 2021. All rights reserved.