PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
hasData (string $name) | |
loadData (string $name) | |
saveData (string $name, CompoundTag $data) | |
Handles storage of player data. Implementations must treat player names in a case-insensitive manner.
Definition at line 31 of file PlayerDataProvider.php.
pocketmine\player\PlayerDataProvider::hasData | ( | string | $name | ) |
Returns whether there are any data associated with the given player name.
Implemented in pocketmine\player\DatFilePlayerDataProvider.
pocketmine\player\PlayerDataProvider::loadData | ( | string | $name | ) |
Returns the data associated with the given player name, or null if there is no data. TODO: we need an async version of this
PlayerDataLoadException |
Implemented in pocketmine\player\DatFilePlayerDataProvider.
pocketmine\player\PlayerDataProvider::saveData | ( | string | $name, |
CompoundTag | $data ) |
Saves data for the give player name.
PlayerDataSaveException |
Implemented in pocketmine\player\DatFilePlayerDataProvider.