mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
TimeCommand: Use Level constant instead of hardcoded value
This commit is contained in:
@ -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{
|
||||||
|
Reference in New Issue
Block a user