Added hardcore mode

This commit is contained in:
Shoghi Cervantes
2013-05-29 22:58:43 +02:00
parent 2f05a03e51
commit 6e2f7af6b4
3 changed files with 6 additions and 2 deletions

View File

@ -797,6 +797,9 @@ class Entity extends Position{
if($this->player instanceof Player){
$this->player->blocked = true;
$this->server->api->dhandle("player.death", array("player" => $this->player, "cause" => $cause));
if(($this->player->gamemode & 0x01) === 0 and $this->server->api->getProperty("hardcore") == 1){
$this->server->api->ban->ban($this->player->username);
}
}else{
$this->close();
}