PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\OfflinePlayer Class Reference
+ Inheritance diagram for pocketmine\OfflinePlayer:
+ Collaboration diagram for pocketmine\OfflinePlayer:

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)
 

Detailed Description

Definition at line 29 of file OfflinePlayer.php.

Constructor & Destructor Documentation

pocketmine\OfflinePlayer::__construct ( Server  $server,
  $name 
)
Parameters
Server$server
string$name

Definition at line 39 of file OfflinePlayer.php.

References pocketmine\Server\getOfflinePlayerData().

+ Here is the call graph for this function:

Member Function Documentation

pocketmine\OfflinePlayer::getFirstPlayed ( )
Returns
int|double

Implements pocketmine\IPlayer.

Definition at line 105 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::getLastPlayed ( )
Returns
int|double

Implements pocketmine\IPlayer.

Definition at line 109 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::getName ( )
Returns
string

Implements pocketmine\IPlayer.

Definition at line 53 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::getPlayer ( )
Returns
Player|null

Implements pocketmine\IPlayer.

Definition at line 101 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::hasPlayedBefore ( )
Returns
mixed

Implements pocketmine\IPlayer.

Definition at line 113 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::isBanned ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 77 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::isOnline ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 49 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::isOp ( )

Checks if the current object has operator permissions

Returns
bool

Implements pocketmine\permission\ServerOperator.

Definition at line 61 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::isWhitelisted ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 89 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::setBanned (   $banned)
Parameters
bool$banned

Implements pocketmine\IPlayer.

Definition at line 81 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::setOp (   $value)

Sets the operator permission for the current object

Parameters
bool$value
Returns
void

Implements pocketmine\permission\ServerOperator.

Definition at line 65 of file OfflinePlayer.php.

pocketmine\OfflinePlayer::setWhitelisted (   $value)
Parameters
bool$value

Implements pocketmine\IPlayer.

Definition at line 93 of file OfflinePlayer.php.


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