mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Convert VersionInfo into a final class
this allows it to be loaded by the autoloader without additional changes.
This commit is contained in:
@ -33,6 +33,7 @@ use pocketmine\utils\Process;
|
||||
use pocketmine\utils\Utils;
|
||||
use pocketmine\utils\VersionString;
|
||||
use pocketmine\uuid\UUID;
|
||||
use pocketmine\VersionInfo;
|
||||
use function array_map;
|
||||
use function array_values;
|
||||
use function count;
|
||||
@ -71,7 +72,7 @@ class SendUsageTask extends AsyncTask{
|
||||
case self::TYPE_OPEN:
|
||||
$data["event"] = "open";
|
||||
|
||||
$version = new VersionString(\pocketmine\BASE_VERSION, \pocketmine\IS_DEVELOPMENT_BUILD, \pocketmine\BUILD_NUMBER);
|
||||
$version = new VersionString(VersionInfo::BASE_VERSION, VersionInfo::IS_DEVELOPMENT_BUILD, VersionInfo::BUILD_NUMBER);
|
||||
|
||||
$data["server"] = [
|
||||
"port" => $server->getPort(),
|
||||
|
Reference in New Issue
Block a user