How do I modify the Minecraft options after deploying the server

I used the one click Minecraft option to create a server is there a way to change the Minecraft options once its been deployed.

6 Replies

Linode Staff

The One-Click App for Minecraft takes the configurations you set at the time the server is created and places them into a configuration file. You can change these options via the Linode's command line. You would need to either use the Lish console or connect via SSH; you can use the username root and the root password you set at the time the Linode was created. The file you’ll need to edit is /home/mcserver/serverfiles/server.properties, which can be opened and edited with a text editor such as nano. From there, you can edit the configurations as needed, save the file, and reload your game.

Linode’s guide has some details https://www.linode.com/docs/platform/one-click/deploying-minecraft-with-one-click-apps/#minecraft-options and also look at https://linuxgsm.com/ which the guide mentions is installed with the one click app.

After you modify the server.properties, how do we restart the server?

@jmoorthy - You can restart your Linode from the Cloud Manager by selecting the option that says "Running" in the upper-right corner of your Linode's page. You'll need to select Reboot from there.

@jyoo how do I stop the minecraft server for manual update. the internet says sudo screen -r but I get -bash: screen: cmmand not found

Hey there! the Minecraft One Click App actually has a function that automatically adds an update command to your Linode's crontab:

crontab -l
*/5 * * * * su - mcserver -c '/home/mcserver/mcserver monitor' > /dev/null 2>&1
0 23 * * * su - mcserver -c '/home/mcserver/mcserver update' > /dev/null 2>&1
30 23 * * * su - mcserver -c '/home/mcserver/mcserver update-functions' > /dev/null 2>&1

If you want to stop the server itself and perform an update, you need to SSH into the Linode as the root user then run the following commands:

su mcserver
cd
./mcserver stop
./mcserver update
./mcserver start

That said, I don't believe you need to necessarily stop the server in order to run the update command.

If you want to edit the cron job so the server only performs manual update, that's absolutely possible as well.

All you should need to do is run the command crontab -e and choose your text editor (I recommend nano if you don't know vim), and remove the two lines about updating the Minecraft server. To save and exit you just hit CTRL+x then press Y at the prompt. The end result should look something like this:

crontab -l
*/5 * * * * su - mcserver -c '/home/mcserver/mcserver monitor' > /dev/null 2>&1

You can read more about the crontab in this guide.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct