PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
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.