TimeCommand: Use Level constant instead of hardcoded value

This commit is contained in:
Dylan K. Taylor 2018-04-05 15:41:59 +01:00
parent c06c1c7ce0
commit 3f31f6d310

View File

@ -101,7 +101,7 @@ class TimeCommand extends VanillaCommand{
} }
if($args[1] === "day"){ if($args[1] === "day"){
$value = 0; $value = Level::TIME_DAY;
}elseif($args[1] === "night"){ }elseif($args[1] === "night"){
$value = Level::TIME_NIGHT; $value = Level::TIME_NIGHT;
}else{ }else{