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

@ -404,7 +404,8 @@ class PlayerAPI{
"lastIP" => "",
"lastID" => 0,
"achievements" => [],
"slot-count" => 7
"slot-count" => 7,
"bed-position" => null,
];
if(!file_exists(DATA_PATH . "players/" . $iname . ".yml")){