mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Implemented Level::getSafeSpawn()
This commit is contained in:
parent
4a05f04a00
commit
9e337e21d2
5 changed files with 26 additions and 6 deletions
|
|
@ -269,7 +269,7 @@ class PlayerAPI{
|
|||
$origin = $this->get($name);
|
||||
if($origin instanceof Player){
|
||||
$name = $origin->username;
|
||||
return $origin->teleport($lv->getSpawn());
|
||||
return $origin->teleport($lv->getSafeSpawn());
|
||||
}
|
||||
}else{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue