mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Implemented correct time offsets and speed
This commit is contained in:
@@ -23,6 +23,7 @@ namespace pocketmine\command\defaults;
|
||||
|
||||
use pocketmine\command\Command;
|
||||
use pocketmine\command\CommandSender;
|
||||
use pocketmine\level\Level;
|
||||
use pocketmine\utils\TextFormat;
|
||||
|
||||
class TimeCommand extends VanillaCommand{
|
||||
@@ -53,7 +54,7 @@ class TimeCommand extends VanillaCommand{
|
||||
if($args[1] === "day"){
|
||||
$value = 0;
|
||||
}elseif($args[1] === "night"){
|
||||
$value = 12500;
|
||||
$value = Level::TIME_NIGHT;
|
||||
}else{
|
||||
$value = $this->getInteger($sender, $args[1], 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user