Part of the content of this tutorial comes from githubwiki
Serversync allows automated execution.This tutorial is used to complete the automatic update before the game starts using the Serversync with the HMCL starter and the Multimc promoter to complete the game.
After updating version 4.0, Serversync has changed the automation execution instruction, as follows: (Please select the corresponding command according to the version used))
Serversync version automatically execute commands 3.6.0 and below $ Inst_Java-JAR Serversync-*. Jar Progress-only4.0.0 or above $ Inst_java-Jar Serversync NameFor example, Serversync-4.2.0.jar
Use HMCL (Note: HMCL version must be 3.3.163 and above))
Download the jar file of Serversync and put it under the .minecraft folder on the client;
Double -click to run the serverSync.jar file, fill in the IP address, port number information, and click synchronization to confirm that you can connect to the update server;
Open the HMCL promoter, select the gear icon corresponding to the MC version, and enter the "specific settings of the game" page (if there is only one version can choose the global settings here), check the "enable specific settings";
Play page, high-level settings-> execute command before start, fill in the command: (I use version 3.5.1, so fill in Serversync-3.5.1, fill in the SS version used)
Serversync version automatic execution command 3.6.0 and below $ Inst_Java -JAR Serversync -*. Jar Progress -only4.0.0 or above $ Inst_java -Jar Serversync*. Jar -O -O.
Set up, return to the main interface, click the startup game, and automatically start the server to update the required file before Minecraft starts.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Use Multimc
Choose the Minecraft instance you need;
Turn to instance settings (right-click instance-> Edit instance-> Settings-> Custom command)
Add to the before starting: (Figure)
Serversync version automatic execution command 3.6.0 and below $ Inst_Java -JAR Serversync -*. Jar Progress -only4.0.0 or above $ Inst_java -Jar Serversync*. Jar -O -O.
4. Settings, return to the main interface, click the startup game, and automatically start Serversync to update the required files before Minecraft starts.