Merge commit '45c89d084'

# Conflicts:
#	resources/vanilla
#	src/command/defaults/TimeCommand.php
This commit is contained in:
Dylan K. Taylor 2020-05-23 11:14:12 +01:00
commit 14dd7f306b

View File

@ -96,12 +96,28 @@ class TimeCommand extends VanillaCommand{
return true;
}
if($args[1] === "day"){
switch($args[1]){
case "day":
$value = World::TIME_DAY;
}elseif($args[1] === "night"){
break;
case "noon":
$value = World::TIME_NOON;
break;
case "sunset":
$value = World::TIME_SUNSET;
break;
case "night":
$value = World::TIME_NIGHT;
}else{
break;
case "midnight":
$value = World::TIME_MIDNIGHT;
break;
case "sunrise":
$value = World::TIME_SUNRISE;
break;
default:
$value = $this->getInteger($sender, $args[1], 0);
break;
}
foreach($sender->getServer()->getWorldManager()->getWorlds() as $world){