Some fixes.

This commit is contained in:
kotyara 2022-07-26 18:11:27 +05:00
parent b60f0877e1
commit 51e77bf77e
8 changed files with 22 additions and 17 deletions

View file

@ -147,11 +147,12 @@ class LevelAPI{
return ("Spawn set!");
break;
case "save-all":
$output .= "Saving...\n";
$save = $this->server->saveEnabled;
$this->server->saveEnabled = true;
$this->saveAll();
$this->server->saveEnabled = $save;
$this->server->api->chat->broadcast("[NostalgiaCore] All files are saved.");
$output .= "Saved the world";
break;
case "save-on":
$this->server->saveEnabled = true;