public interface CommandSender
Modifier and Type | Method and Description |
---|---|
void |
addGroups(String... groups)
Adds groups to a this user for the current session only.
|
Collection<String> |
getGroups()
Get all groups this user is part of.
|
String |
getName()
Get the unique name of this command sender.
|
Collection<String> |
getPermissions()
Get all Permissions which this CommandSender has
|
boolean |
hasPermission(String permission)
Checks if this user has the specified permission node.
|
void |
removeGroups(String... groups)
Remove groups from this user for the current session only.
|
void |
sendMessage(BaseComponent... message)
Send a message to this sender.
|
void |
sendMessage(BaseComponent message)
Send a message to this sender.
|
void |
sendMessage(String message)
Deprecated.
|
void |
sendMessages(String... messages)
Deprecated.
|
void |
setPermission(String permission,
boolean value)
Set a permission node for this user.
|
String getName()
@Deprecated void sendMessage(String message)
message
- the message to send@Deprecated void sendMessages(String... messages)
messages
- the messages to sendvoid sendMessage(BaseComponent... message)
message
- the message to sendvoid sendMessage(BaseComponent message)
message
- the message to sendCollection<String> getGroups()
void addGroups(String... groups)
groups
- the groups to addvoid removeGroups(String... groups)
groups
- the groups to removeboolean hasPermission(String permission)
permission
- the node to checkvoid setPermission(String permission, boolean value)
permission
- the node to setvalue
- the value of the nodeCollection<String> getPermissions()
Copyright © 2012–2020 SpigotMC. All rights reserved.