Documentation

ConsoleCommandSender
in package
implements CommandSender Uses PermissibleDelegateTrait

Interfaces, Classes, Traits and Enums

CommandSender

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

Methods

getPermissionRecalculationCallbacks()

public getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
Tags
phpstan-return

ObjectSet<\Closure(array<string, bool> $changedPermissionsOldValues) : void>

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

recalculatePermissions()

public recalculatePermissions() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

Search results