__construct |
( |
Server |
$server, |
|
|
|
$name |
|
) |
| |
- Returns
- int|double
Implements IPlayer.
- Returns
- int|double
Implements IPlayer.
getMetadata |
( |
|
$metadataKey | ) |
|
Returns a list of previously set metadata values from the implementing object's metadata store.
- Parameters
-
- Returns
- MetadataValue[]
Implements Metadatable.
- Returns
- Player|null
Implements IPlayer.
hasMetadata |
( |
|
$metadataKey | ) |
|
Tests to see whether the implementing object contains the given metadata value in its metadata store.
- Parameters
-
- Returns
- bool
Implements Metadatable.
Checks if the current object has operator permissions
- Returns
- bool
Implements ServerOperator.
removeMetadata |
( |
|
$metadataKey, |
|
|
Plugin |
$owningPlugin |
|
) |
| |
Removes the given metadata value from the implementing object's metadata store.
- Parameters
-
string | $metadataKey | |
Plugin | $owningPlugin | |
- Returns
- void
Implements Metadatable.
Sets a metadata value in the implementing object's metadata store.
- Parameters
-
string | $metadataKey | |
MetadataValue | $newMetadataValue | |
- Returns
- void
Implements Metadatable.
Sets the operator permission for the current object
- Parameters
-
- Returns
- void
Implements ServerOperator.
The documentation for this class was generated from the following file:
- src/pocketmine/OfflinePlayer.php