Rail Connection was ported from Nukkit(still buggy,but it is better than nothing, toggleable in config)

This commit is contained in:
GameHerobrine 2022-05-13 18:45:51 +03:00
parent d603180b7d
commit 835c176cd5
2 changed files with 147 additions and 1 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-rail-connection" => false,
"save-player-data" => true,
"save-console-data" => true,
"query-plugins" => false,
@ -81,7 +82,7 @@ class PocketMinecraftServer{
"discord-webhook-url" => "none",
"discord-bot-name" => "NostalgiaCore Logger"
));
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"){
console("[INFO] Discord Logger is enabled.");