mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Added hardcore mode
This commit is contained in:
parent
2f05a03e51
commit
6e2f7af6b4
3 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue