I have an error about sh
Since you are typing it into terminal anyway then just split it into two commands and do
cd /home/minecraft\ server/desktop/test\ server/lobby java -jar xms1730m -xmx785m spigot.jar
Notice that there is \ before every space, you could do this insted:
cd "/home/minecraft server/desktop/test server/lobby"
so the command know that the space isn't argument separator but still file name.
To explain what it does: it changes current working directory to where the spigot.jar is and then uses java to run the jar.
You can put it into file and save it as eg. run_server.sh give it rights to run by chmod +x ./run_server.sh and run it every time you need to start server again by typing ./run_server.sh when you are in same directory as the script. You may want to acknowledge with screen utility, since running server in your ssh and then terminating session may terminate server as well.
And easy on google translate! At least put any effort to read what it produce at the other end.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now