bed position is saved in playerdata, bed destruction will teleport you to the world spawn

This commit is contained in:
GameHerobrine 2025-06-05 14:09:04 +03:00
parent 60c29e9dd1
commit 6ab777e5e9
4 changed files with 39 additions and 14 deletions

View file

@ -109,8 +109,9 @@ class LevelAPI{
return true;
}
/**
* Gets a level by name. Returns false if no level with such name exists.
* @param string $name
* @return Level|boolean
* @return Level|false
*/
public function get($name){
if(isset($this->levels[$name])){