CommandSender, Permissible, ServerOperatorBufferedCommandSender, TimingsReportListenerpublic interface MessageCommandSender extends CommandSender
CommandSender.Spigot| Modifier and Type | Method | Description | 
|---|---|---|
| default PermissionAttachment | addAttachment(Plugin plugin) | Adds a new empty  PermissionAttachmentto this object | 
| default PermissionAttachment | addAttachment(Plugin plugin,
             int ticks) | Temporarily adds a new empty  PermissionAttachmentto this
 object | 
| default PermissionAttachment | addAttachment(Plugin plugin,
             java.lang.String name,
             boolean value) | Adds a new  PermissionAttachmentwith a single permission by
 name and value | 
| default PermissionAttachment | addAttachment(Plugin plugin,
             java.lang.String name,
             boolean value,
             int ticks) | Temporarily adds a new  PermissionAttachmentwith a single
 permission by name and value | 
| default java.util.Set<PermissionAttachmentInfo> | getEffectivePermissions() | Gets a set containing all of the permissions currently in effect by
 this object | 
| default java.lang.String | getName() | Gets the name of this command sender | 
| default Server | getServer() | Returns the server instance that this command is running on | 
| default boolean | hasPermission(java.lang.String name) | Gets the value of the specified permission, if set. | 
| default boolean | hasPermission(Permission perm) | Gets the value of the specified permission, if set. | 
| default boolean | isOp() | Checks if this object is a server operator | 
| default boolean | isPermissionSet(java.lang.String name) | Checks if this object contains an override for the specified
 permission, by fully qualified name | 
| default boolean | isPermissionSet(Permission perm) | Checks if this object contains an override for the specified  Permission | 
| default void | recalculatePermissions() | Recalculates the permissions for this object, if the attachments have
 changed values. | 
| default void | removeAttachment(PermissionAttachment attachment) | Removes the given  PermissionAttachmentfrom this object | 
| default void | sendMessage(java.lang.String[] messages) | Sends this sender multiple messages | 
| default void | setOp(boolean value) | Sets the operator status of this object | 
| default CommandSender.Spigot | spigot() | 
sendMessage, sendMessage, sendMessagedefault void sendMessage(java.lang.String[] messages)
CommandSendersendMessage in interface CommandSendermessages - An array of messages to be displayeddefault Server getServer()
CommandSendergetServer in interface CommandSenderdefault java.lang.String getName()
CommandSendergetName in interface CommandSenderdefault boolean isOp()
ServerOperatorisOp in interface ServerOperatordefault void setOp(boolean value)
ServerOperatorsetOp in interface ServerOperatorvalue - New operator valuedefault boolean isPermissionSet(java.lang.String name)
PermissibleisPermissionSet in interface Permissiblename - Name of the permissiondefault boolean isPermissionSet(Permission perm)
PermissiblePermissionisPermissionSet in interface Permissibleperm - Permission to checkdefault boolean hasPermission(java.lang.String name)
PermissibleIf a permission override is not set on this object, the default value of the permission will be returned.
hasPermission in interface Permissiblename - Name of the permissiondefault boolean hasPermission(Permission perm)
PermissibleIf a permission override is not set on this object, the default value of the permission will be returned
hasPermission in interface Permissibleperm - Permission to getdefault PermissionAttachment addAttachment(Plugin plugin, java.lang.String name, boolean value)
PermissiblePermissionAttachment with a single permission by
 name and valueaddAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null
     or disabledname - Name of the permission to attachvalue - Value of the permissiondefault PermissionAttachment addAttachment(Plugin plugin)
PermissiblePermissionAttachment to this objectaddAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null
     or disableddefault PermissionAttachment addAttachment(Plugin plugin, java.lang.String name, boolean value, int ticks)
PermissiblePermissionAttachment with a single
 permission by name and valueaddAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null
     or disabledname - Name of the permission to attachvalue - Value of the permissionticks - Amount of ticks to automatically remove this attachment
     afterdefault PermissionAttachment addAttachment(Plugin plugin, int ticks)
PermissiblePermissionAttachment to this
 objectaddAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null
     or disabledticks - Amount of ticks to automatically remove this attachment
     afterdefault void removeAttachment(PermissionAttachment attachment)
PermissiblePermissionAttachment from this objectremoveAttachment in interface Permissibleattachment - Attachment to removedefault void recalculatePermissions()
PermissibleThis should very rarely need to be called from a plugin.
recalculatePermissions in interface Permissibledefault java.util.Set<PermissionAttachmentInfo> getEffectivePermissions()
PermissiblegetEffectivePermissions in interface Permissibledefault CommandSender.Spigot spigot()
spigot in interface CommandSenderCopyright © 2018. All rights reserved.