Cancel correctly Handling Events using return true

This commit is contained in:
Shoghi Cervantes Pueyo
2013-03-09 09:27:29 +01:00
parent bc5516867c
commit 3432a69a41
5 changed files with 11 additions and 5 deletions

View File

@@ -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;
}
}