mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
remove \pocketmine\START_TIME, add Server->getStartTime()
This commit is contained in:
@@ -54,7 +54,7 @@ class StatusCommand extends VanillaCommand{
|
||||
$server = $sender->getServer();
|
||||
$sender->sendMessage(TextFormat::GREEN . "---- " . TextFormat::WHITE . "Server status" . TextFormat::GREEN . " ----");
|
||||
|
||||
$time = microtime(true) - \pocketmine\START_TIME;
|
||||
$time = microtime(true) - $server->getStartTime();
|
||||
|
||||
$seconds = floor($time % 60);
|
||||
$minutes = null;
|
||||
|
Reference in New Issue
Block a user