mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +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"){
|
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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user