Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

How do I give a custom command to start my minecraft server?

  • Last Post 17 May 2020
  • Topic Is Solved
Left of Zen posted this 17 May 2020

Ubuntu 18.04, Forge server 1.12.2-

[Info] AMP Instance Manager v1.9.9.5 built 13/05/2020 00:20
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV


AMP isn't smart enough to know which version of java is required to run a certain Forge server jar file so just creating and running a Forge server in AMP doesn't work, but I can run it on my server in command line with:

~/.ampdata/instances/Minecraft01/Minecraft $
    /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms1G -Xmx3G -jar forge-1.12.2- nogui

I know I can set the JVM arguments in AMP but I cannot find where to set which java binary AMP uses - how can I do that? I tried to alias 'java' to my java binary but that didn't work.

Left of Zen posted this 17 May 2020

Nvm, I found the answer despite it being a bit unintuitive. Posting solution here in case someone else runs into this.

You can add the path to the Java exe in a file called MinecraftModule.kvp which is visible in the ADS File Manager browser, NOT in the Minecraft Instance file manager. For me its under /VDSMinecraft01/MinecarftModule.kvp and at the very top of the file I was able to set "Java.Path=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" and now it works :)

Edit: I can't seem to "Mark as Answer", the button doesn't seem to work on Chrome