WIP
This commit is contained in:
parent
859c286585
commit
060069e479
2 changed files with 11 additions and 9 deletions
|
@ -30,7 +30,8 @@ class Example extends Game {
|
|||
}
|
||||
|
||||
|
||||
public function onPlayerDeath(\pocketmine\event\PlayerDeathEvent $event) {
|
||||
public function onPlayerDeath(\pocketmine\event\player\PlayerDeathEvent $event) {
|
||||
$event->getPlayer()->setGamemode(3);
|
||||
if(($this->getPlugin()->getInGamePlayers($this->getLevel()) - 1) == 0) {
|
||||
$this->stop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue