diff --git a/src/pocketmine/command/defaults/StatusCommand.php b/src/pocketmine/command/defaults/StatusCommand.php index 60d49c2dc..85669451f 100644 --- a/src/pocketmine/command/defaults/StatusCommand.php +++ b/src/pocketmine/command/defaults/StatusCommand.php @@ -54,9 +54,9 @@ class StatusCommand extends VanillaCommand{ $server = $sender->getServer(); $sender->sendMessage(TextFormat::GREEN . "---- " . TextFormat::WHITE . "Server status" . TextFormat::GREEN . " ----"); - $time = microtime(true) - \pocketmine\START_TIME; + $time = (int) (microtime(true) - \pocketmine\START_TIME); - $seconds = floor($time % 60); + $seconds = $time % 60; $minutes = null; $hours = null; $days = null;