mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Fixed Hardcore flags
This commit is contained in:
parent
b564868467
commit
8d00ef381d
2 changed files with 4 additions and 1 deletions
|
|
@ -797,7 +797,7 @@ 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){
|
||||
if($this->server->api->getProperty("hardcore") == 1){
|
||||
$this->server->api->ban->ban($this->player->username);
|
||||
}
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue