mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added API to allow flagging an entity not to be saved to disk when its chunk is saved (#1452)
This commit is contained in:
@ -3415,6 +3415,14 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
return [];
|
||||
}
|
||||
|
||||
public function canSaveWithChunk() : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function setCanSaveWithChunk(bool $value) : void{
|
||||
throw new \BadMethodCallException("Players can't be saved with chunks");
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles player data saving
|
||||
*
|
||||
|
Reference in New Issue
Block a user