mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Cancel correctly Handling Events using return true
This commit is contained in:
parent
bc5516867c
commit
3432a69a41
5 changed files with 11 additions and 5 deletions
|
|
@ -54,6 +54,7 @@ class PlayerAPI{
|
|||
$player->setHealth(min(20, $player->getHealth() + $data), "regeneration");
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "player.death":
|
||||
|
|
@ -103,6 +104,7 @@ class PlayerAPI{
|
|||
}
|
||||
}
|
||||
$this->server->chat(false, $message);
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue