level properties, moved some settings from server.properties, cmd placeholders

This commit is contained in:
GameHerobrine 2026-04-28 13:57:03 +03:00
parent 581a6a8fb2
commit cf4dc73a6c
10 changed files with 165 additions and 30 deletions

View file

@ -1078,7 +1078,7 @@ class Entity extends Position
public function interactWith(Entity $e, $action)
{
if($this->isPlayer() and ($this->server->api->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($this->player->gamemode & 0x01) === 0x01)){
if($this->isPlayer() and ($this->level->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($this->player->gamemode & 0x01) === 0x01)){
return false;
}