mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
TimeCommand: Use Level constant instead of hardcoded value
This commit is contained in:
parent
c06c1c7ce0
commit
3f31f6d310
@ -101,7 +101,7 @@ class TimeCommand extends VanillaCommand{
|
||||
}
|
||||
|
||||
if($args[1] === "day"){
|
||||
$value = 0;
|
||||
$value = Level::TIME_DAY;
|
||||
}elseif($args[1] === "night"){
|
||||
$value = Level::TIME_NIGHT;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user