enable-explosions option(allows you to turn off tnt explosions)

This commit is contained in:
GameHerobrine 2022-05-17 16:57:54 +03:00
parent d9d18c6a47
commit 099bd3b695
2 changed files with 6 additions and 0 deletions

View file

@ -74,6 +74,7 @@ class PocketMinecraftServer{
console("[INFO] Loading extra.properties...");
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, array(
"version" => "3",
"enable-explosions" => true,
"enable-rail-connection" => false,
"save-player-data" => true,
"save-console-data" => true,
@ -82,6 +83,7 @@ class PocketMinecraftServer{
"discord-webhook-url" => "none",
"discord-bot-name" => "NostalgiaCore Logger"
));
Explosion::$enableExplosions = $this->extraprops->get("enable-explosions");
RailBlock::$shouldconnectrails = $this->extraprops->get("enable-rail-connection"); //Rail connection in config
if($this->extraprops->get("discord-msg") == true){
if($this->extraprops->get("discord-webhook-url") !== "none"){