Minecraft Launcher module for parse and run classic version.json from Mojang LAUNCHERMETA
- Run Minecraft
- Spoofing META URL's
- Download and Update resources
- add "ZIP 1.0" package to project
- insert files to 'kosogroup/minecraft/launcher/core' to SRC root
- copy this code
- Enjoy!
<?php
use kosogroup\minecraft\launcher\core\TrophyLauncher;
use kosogroup\minecraft\launcher\core\TrophyVersion;
//TrophyVersion::DeployMeta("https://launchermeta.minetrophy.ru");
$launchOptions = array(
'url' => array (
'meta' => 'https://launchermeta.mojang.com',
'resource' => 'https://resources.download.minecraft.net'
),
//'javaPath' => 'javaw',
'launcherPath' => './minecraft',
'version' => array(
//'jsonDownload' => false,
'number' => '1.16.5',
'type' => 'release'
),
'auth' => array(
'username' => 'meatsuko',
'uuid' => 'meatsuko',
'token' => 'shalala',
'type' => 'trophy',
),
//'detached' => false,
'memory' => array(
'min' => '8G',
'max' => '32G'
)
);
(new TrophyLauncher())->launch($launchOptions);