I’ve recently set up a 1.15.2 Minecraft server for my friends and I using my raspberry pi 4 model b as the host. Of course, this isn’t the fastest option, so I wanted to make some changes to the server. However, when I try to edit the server.properties
file, nothing changes on the server. I’m making sure to stop the server, edit it and then save, and then launch it back up, but none of the edits are actually appearing. The same thing happens if I try to add a server icon. I followed this tutorial to set it up.
I’ve looked in many different places but all I’m really getting is “make sure your server isn’t open and you save the file.” No one else seems to have this problem.
In the picture I have here, I have the max players set to 10, yet it still says that the max players is 20 when I connect to it on my laptop.
Best Answer
With the additional info from the comments, I think, I can provide you with a walkthrough to your issue.
In your setup, world data is found in three folders:
/home/pi/world
,/home/pi/world_nether
and/home/pi/world_the_end
.logs/
plugins/
world/
world_nether/
world_the_end/
banned-ips.json
banned-players.json
bukkit.yml
commands.yml
eula.txt
help.yml
ops.json
permissions.yml
server.properties
spigot.yml
usercache.json
whitelist.json
Note: You shouldn't delete the
minecraft
folder.If you want to delete these files, you can use the following command:
Note: This isn't the most optimalized command to start your server, but this will work. If you want to run your server in the most optimalized way, you should copy and paste this to your
run.sh
fileTest your server. Connect to it, and see if it loads properly. If everything works fine, shut down your server by entering
stop
, and proceed to the next step.Import your world saves. Delete the freshly generated folders
world
,world_nether
andworld_the_end
, and replace them with your folders, that we backed up in step 2.Change the server.properties file as you wish.
Test again your results. If you've done everything correctly, by this point you should have a perfectly functional minecraft server with your old maps.
Now if you wan't to start your server, you have to cd into the
mcserver
directory, and start your server with the./run.sh
command.Optionally you could configure linux to automatically start the server for you at start-up. (Based on the tutorial you linked, with minor changes)
Create and open
/lib/systemd/system/minecraftserver.service
file with a text editor. You could use nano for this, as it comes preinstalled.Enter the following text into the editor.
Save this file using the Ctrl + X keyboard shortcut, and then press the y and Enter keys when prompted.
Now you should enable and start your server.
And done! Your Minecraft server should start with your Raspberry Pi.
Troubleshooting
You can check the status of your server with the following command, to see if it's even running, and to see the latest few lines of log.
The Raspberry Pi isn't too powerful, so your server might take some time to start. If you can't connect to it after a reboot, check the status and give it up to 15 minutes to fully start up.
Your server logs will be saved to
/home/pi/mcserver/logs
folder. Here you'll find every error message your server outputs, and you could ask a separate question about them.If you are on a local network, between restarts, your device's IP might have changed, if you can't connect with "unreachable" error messages, you might want to check out the IP of your Pi with: