public class TridentConsole extends Object implements Console
| Constructor and Description |
|---|
TridentConsole() |
| Modifier and Type | Method and Description |
|---|---|
Player |
asPlayer()
Obtains this command issuer as a player
|
void |
grantPermission(String perm)
Offers the permission holder a permission which they can hold
|
void |
invokeCommand(String message)
Issues a command from this sender, forcing them to run it
|
String |
lastCommand()
Gets the last command executed by this CommandIssuer, without the preceding "/"
|
String |
lastMessage()
Gets the last message sent to this Messagable
|
boolean |
opped()
Checks if the permission holder has operator status
|
boolean |
ownsPermission(String perm)
Observes the holder to see if it holds the specified permission
|
void |
revokePermission(String perm)
Removes the permission tag from the holder such that the next invocation of
PermissionOwner.ownsPermission(String)
returns false |
void |
sendRaw(String... messages)
Send an array of messages to this recipient
|
public TridentConsole()
public void invokeCommand(String message)
CommandIssuerinvokeCommand in interface CommandIssuerpublic String lastCommand()
CommandIssuerlastCommand in interface CommandIssuerpublic Player asPlayer()
CommandIssuerasPlayer in interface CommandIssuerpublic void sendRaw(String... messages)
MessagablesendRaw in interface Messagablemessages - String[] messages to be sentpublic String lastMessage()
MessagablelastMessage in interface Messagablepublic void grantPermission(String perm)
PermissionOwnerThis has no effect if the holder already has the given permission
grantPermission in interface PermissionOwnerperm - the new permission the holder should holdpublic void revokePermission(String perm)
PermissionOwnerPermissionOwner.ownsPermission(String)
returns falserevokePermission in interface PermissionOwnerperm - the permission to removepublic boolean ownsPermission(String perm)
PermissionOwnerownsPermission in interface PermissionOwnerperm - the permission to check if heldtrue if the permission is held, false if it is notpublic boolean opped()
PermissionOwneropped in interface PermissionOwnertrue to indicate that the holder is an operatorCopyright © 2016. All rights reserved.