mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Fixed issue where plugins schedule a Player update before log in
This commit is contained in:
@ -1200,6 +1200,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
}
|
||||
|
||||
public function onUpdate($currentTick){
|
||||
if(!$this->loggedIn){
|
||||
return false;
|
||||
}
|
||||
|
||||
if($this->dead === true and $this->spawned){
|
||||
++$this->deadTicks;
|
||||
if($this->deadTicks >= 10){
|
||||
|
Reference in New Issue
Block a user