ConsoleCommandSender
in package
implements
CommandSender
Uses
PermissibleDelegateTrait
Interfaces, Classes, Traits and Enums
Table of Contents
- $lineHeight : int|null
- $language : Language
- $perm : Permissible
- $server : Server
- __construct() : mixed
- addAttachment() : PermissionAttachment
- getEffectivePermissions() : array<string|int, PermissionAttachmentInfo>
- getLanguage() : Language
- getName() : string
- getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
- getScreenLineHeight() : int
- Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination such as in the /help command.
- getServer() : Server
- hasPermission() : bool
- isPermissionSet() : bool
- recalculatePermissions() : array<string|int, mixed>
- removeAttachment() : void
- sendMessage() : void
- setBasePermission() : void
- setScreenLineHeight() : void
- Sets the line height used for command output pagination for this command sender. `null` will reset it to default.
- unsetBasePermission() : void
Properties
$lineHeight
protected
int|null
$lineHeight
= null
$language
private
Language
$language
$perm
private
Permissible
$perm
$server
private
Server
$server
Methods
__construct()
public
__construct(Server $server, Language $language) : mixed
Parameters
Return values
mixed —addAttachment()
public
addAttachment(Plugin $plugin[, string|null $name = null ][, bool|null $value = null ]) : PermissionAttachment
Parameters
- $plugin : Plugin
- $name : string|null = null
- $value : bool|null = null
Return values
PermissionAttachment —getEffectivePermissions()
public
getEffectivePermissions() : array<string|int, PermissionAttachmentInfo>
Return values
array<string|int, PermissionAttachmentInfo> —getLanguage()
public
getLanguage() : Language
Return values
Language —getName()
public
getName() : string
Return values
string —getPermissionRecalculationCallbacks()
public
getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
Tags
Return values
ObjectSet|array<string|int, Closure> —getScreenLineHeight()
Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination such as in the /help command.
public
getScreenLineHeight() : int
Return values
int —getServer()
public
getServer() : Server
Return values
Server —hasPermission()
public
hasPermission(Permission|string $name) : bool
Parameters
- $name : Permission|string
Return values
bool —isPermissionSet()
public
isPermissionSet(Permission|string $name) : bool
Parameters
- $name : Permission|string
Return values
bool —recalculatePermissions()
public
recalculatePermissions() : array<string|int, mixed>
Return values
array<string|int, mixed> —removeAttachment()
public
removeAttachment(PermissionAttachment $attachment) : void
Parameters
- $attachment : PermissionAttachment
Return values
void —sendMessage()
public
sendMessage(Translatable|string $message) : void
Parameters
- $message : Translatable|string
Return values
void —setBasePermission()
public
setBasePermission(Permission|string $name, bool $value) : void
Parameters
- $name : Permission|string
- $value : bool
Return values
void —setScreenLineHeight()
Sets the line height used for command output pagination for this command sender. `null` will reset it to default.
public
setScreenLineHeight(int|null $height) : void
Parameters
- $height : int|null
Return values
void —unsetBasePermission()
public
unsetBasePermission(Permission|string $name) : void
Parameters
- $name : Permission|string