mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Merge branch 'stable' into master
# Conflicts: # composer.lock # resources/vanilla # src/command/defaults/StatusCommand.php # src/pocketmine/entity/Entity.php # src/pocketmine/level/format/SubChunk.php
This commit is contained in:
@@ -54,9 +54,9 @@ class StatusCommand extends VanillaCommand{
|
||||
$server = $sender->getServer();
|
||||
$sender->sendMessage(TextFormat::GREEN . "---- " . TextFormat::WHITE . "Server status" . TextFormat::GREEN . " ----");
|
||||
|
||||
$time = microtime(true) - $server->getStartTime();
|
||||
$time = (int) (microtime(true) - $server->getStartTime());
|
||||
|
||||
$seconds = floor($time % 60);
|
||||
$seconds = $time % 60;
|
||||
$minutes = null;
|
||||
$hours = null;
|
||||
$days = null;
|
||||
|
Reference in New Issue
Block a user