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
|
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, removeAttachment
isOp, setOp
void 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()
Copyright © 2017. All rights reserved.