mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Player: fixed getting re-banned on rejoin after unban from hardcore death
closes #2175
This commit is contained in:
@ -1117,7 +1117,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->getHealth() <= 0){
|
if($this->getHealth() <= 0){
|
||||||
$this->respawn();
|
$this->actuallyRespawn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3891,6 +3891,10 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->actuallyRespawn();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function actuallyRespawn() : void{
|
||||||
$ev = new PlayerRespawnEvent($this, $this->getSpawn());
|
$ev = new PlayerRespawnEvent($this, $this->getSpawn());
|
||||||
$ev->call();
|
$ev->call();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user