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

Public Member Functions

 isOnline ()
 
 getName ()
 
 isBanned ()
 
 setBanned ($banned)
 
 isWhitelisted ()
 
 setWhitelisted ($value)
 
 getPlayer ()
 
 getFirstPlayed ()
 
 getLastPlayed ()
 
 hasPlayedBefore ()
 
 isOp ()
 
 setOp ($value)
 

Detailed Description

Definition at line 26 of file IPlayer.php.

Member Function Documentation

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

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

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

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\IPlayer::getName ( )
Returns
string

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

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

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\IPlayer::hasPlayedBefore ( )
Returns
mixed

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\IPlayer::isBanned ( )
Returns
bool

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\IPlayer::isOnline ( )
Returns
bool

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\permission\ServerOperator::isOp ( )
inherited

Checks if the current object has operator permissions

Returns
bool

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\OfflinePlayer, and pocketmine\permission\PermissibleBase.

pocketmine\IPlayer::isWhitelisted ( )
Returns
bool

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

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

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.

pocketmine\permission\ServerOperator::setOp (   $value)
inherited

Sets the operator permission for the current object

Parameters
bool$value
Returns
void

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\permission\PermissibleBase, and pocketmine\OfflinePlayer.

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

Implemented in pocketmine\Player, and pocketmine\OfflinePlayer.


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