PocketMine
OfflinePlayer Class Reference
Inheritance diagram for OfflinePlayer:
IPlayer ServerOperator

Public Member Functions

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

Constructor & Destructor Documentation

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

Member Function Documentation

getFirstPlayed ( )
Returns
int|double

Implements IPlayer.

getLastPlayed ( )
Returns
int|double

Implements IPlayer.

getName ( )
Returns
string

Implements IPlayer.

getPlayer ( )
Returns
Player|null

Implements IPlayer.

hasPlayedBefore ( )
Returns
mixed

Implements IPlayer.

isBanned ( )
Returns
bool

Implements IPlayer.

isOnline ( )
Returns
bool

Implements IPlayer.

isOp ( )

Checks if the current object has operator permissions

Returns
bool

Implements ServerOperator.

isWhitelisted ( )
Returns
bool

Implements IPlayer.

setBanned (   $banned)
Parameters
bool$banned

Implements IPlayer.

setOp (   $value)

Sets the operator permission for the current object

Parameters
bool$value
Returns
void

Implements ServerOperator.

setWhitelisted (   $value)
Parameters
bool$value

Implements IPlayer.


The documentation for this class was generated from the following file: