mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Some fixes.
This commit is contained in:
parent
b60f0877e1
commit
51e77bf77e
8 changed files with 22 additions and 17 deletions
|
|
@ -65,7 +65,7 @@ class TimeAPI{
|
|||
$output .= "Added $addTime ticks" . $world . "\n";
|
||||
break;
|
||||
case "set":
|
||||
if(substr($args[1], 0, 2) === "w:"){
|
||||
if(isset($args[1]) and substr($args[1], 0, 2) === "w:"){
|
||||
$levelName = preg_replace("/w:/", "", $args[1]);
|
||||
$level = $this->server->api->level->get($levelName);
|
||||
if($level instanceof Level){
|
||||
|
|
@ -83,6 +83,7 @@ class TimeAPI{
|
|||
;
|
||||
else{
|
||||
$output .= "Wrong time!";
|
||||
break;
|
||||
}
|
||||
$this->set($setTime, $level);
|
||||
$output .= "Set the time to " . $setTime . $world . "\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue