PHP Class pocketmine\command\ConsoleCommandSender

Inheritance: implements pocketmine\command\CommandSender
Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( )
addAttachment ( pocketmine\plugin\Plugin $plugin, string $name = null, boolean $value = null ) : PermissionAttachment
getEffectivePermissions ( ) : PermissionAttachmentInfo[]
getName ( ) : string
getServer ( ) : Server
hasPermission ( Permission | string $name ) : boolean
isOp ( ) : boolean
isPermissionSet ( Permission | string $name ) : boolean
isPlayer ( ) : boolean
recalculatePermissions ( )
removeAttachment ( PermissionAttachment $attachment ) : void
sendMessage ( string $message )
setOp ( boolean $value )

Method Details

__construct() public method

public __construct ( )

addAttachment() public method

public addAttachment ( pocketmine\plugin\Plugin $plugin, string $name = null, boolean $value = null ) : PermissionAttachment
$plugin pocketmine\plugin\Plugin
$name string
$value boolean
return pocketmine\permission\PermissionAttachment

getEffectivePermissions() public method

public getEffectivePermissions ( ) : PermissionAttachmentInfo[]
return pocketmine\permission\PermissionAttachmentInfo[]

getName() public method

public getName ( ) : string
return string

getServer() public method

public getServer ( ) : Server
return pocketmine\Server

hasPermission() public method

public hasPermission ( Permission | string $name ) : boolean
$name pocketmine\permission\Permission | string
return boolean

isOp() public method

public isOp ( ) : boolean
return boolean

isPermissionSet() public method

public isPermissionSet ( Permission | string $name ) : boolean
$name pocketmine\permission\Permission | string
return boolean

isPlayer() public method

public isPlayer ( ) : boolean
return boolean

recalculatePermissions() public method

removeAttachment() public method

public removeAttachment ( PermissionAttachment $attachment ) : void
$attachment pocketmine\permission\PermissionAttachment
return void

sendMessage() public method

public sendMessage ( string $message )
$message string

setOp() public method

public setOp ( boolean $value )
$value boolean