mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Player: fixed getting re-banned on rejoin after unban from hardcore death
closes #2175
This commit is contained in:
parent
69952ae2af
commit
141fbde660
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user