PHP Class pocketmine\OfflinePlayer

Inheritance: implements pocketmine\IPlayer
Show file Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Server $server, string $name )
getFirstPlayed ( )
getLastPlayed ( )
getMetadata ( $metadataKey )
getName ( ) : string
getPlayer ( )
getServer ( )
hasMetadata ( $metadataKey )
hasPlayedBefore ( )
isBanned ( )
isOnline ( )
isOp ( )
isWhitelisted ( )
removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin )
setBanned ( $value )
setMetadata ( $metadataKey, MetadataValue $metadataValue )
setOp ( $value )
setWhitelisted ( $value )

Method Details

__construct() public method

public __construct ( Server $server, string $name )
$server Server
$name string

getFirstPlayed() public method

public getFirstPlayed ( )

getLastPlayed() public method

public getLastPlayed ( )

getMetadata() public method

public getMetadata ( $metadataKey )

getName() public method

public getName ( ) : string
return string

getPlayer() public method

public getPlayer ( )

getServer() public method

public getServer ( )

hasMetadata() public method

public hasMetadata ( $metadataKey )

hasPlayedBefore() public method

public hasPlayedBefore ( )

isBanned() public method

public isBanned ( )

isOnline() public method

public isOnline ( )

isOp() public method

public isOp ( )

isWhitelisted() public method

public isWhitelisted ( )

removeMetadata() public method

public removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

setBanned() public method

public setBanned ( $value )

setMetadata() public method

public setMetadata ( $metadataKey, MetadataValue $metadataValue )
$metadataValue pocketmine\metadata\MetadataValue

setOp() public method

public setOp ( $value )

setWhitelisted() public method

public setWhitelisted ( $value )