public class ConsoleCommandSender extends Object implements CommandSender
CONSOLE| Modifier and Type | Field and Description |
|---|---|
private PermissionEntity |
permissionEntity |
| Constructor and Description |
|---|
ConsoleCommandSender() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
PermissionEntity |
getPermissionEntity() |
boolean |
hasPermission(String permission)
Query this command sender for its permissions.
|
void |
sendMessage(String... message)
Send messages to this command sender.
|
private PermissionEntity permissionEntity
public void sendMessage(String... message)
CommandSendersendMessage in interface CommandSendermessage - the messages to sendpublic boolean hasPermission(String permission)
CommandSenderhasPermission in interface CommandSenderpermission - the permission in questiontrue when this command sender has the queried permission,
false otherwise.public PermissionEntity getPermissionEntity()
getPermissionEntity in interface PermissibleCopyright © 2020. All rights reserved.