diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index de6e973ea..f7a206c8a 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -757,9 +757,11 @@ class Server{ } } $spawn = $this->getDefaultLevel()->getSafeSpawn(); + $currentTimeMillis = (int) (microtime(true) * 1000); + $nbt = new CompoundTag("", [ - new LongTag("firstPlayed", (int) (microtime(true) * 1000)), - new LongTag("lastPlayed", (int) (microtime(true) * 1000)), + new LongTag("firstPlayed", $currentTimeMillis), + new LongTag("lastPlayed", $currentTimeMillis), new ListTag("Pos", [ new DoubleTag("", $spawn->x), new DoubleTag("", $spawn->y),