It is highly recommended to create a backup of your server before switching.
Grab the latest version of Mohist from here.
Note: Make sure you grab the latest version that was built for the forge version you're using. The required library file will be downloaded automatically after running.
Move the jar file of mohist to the server's folder.
Edit your server launch script so that the Java line looks like this:
Replace the <version> with the version of the current Mohist build.
java -XX:+UseG1GC -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:MetaspaceSize=1024m -XX:MaxMetaspaceSize=2048m -XX:+AggressiveOpts -XX:MaxGCPauseMillis=10 -XX:+UseStringDeduplication -Xms4G -Xmx6G -XX:hashCode=5 -jar Mohist-<version>-universal.jar
- You're good to go!