Intermediate ▶ Video guide Updated September 25, 2026

Change Minecraft settings in server.properties

Edit your Minecraft server.properties with the file manager: difficulty, game mode, max players, MOTD, view distance and more, plus the keys to leave alone.

0:00 / 1:54
Read the transcript

This audio was created with Boson AI's Higgs Audio: boson.ai/higgs-audio

Most of a Minecraft server’s settings live in one text file, server.properties: the difficulty, the default game mode, how many players fit, the message in the server list, how far players can see. On SLASHPLAY you edit it in the browser with the file manager, then restart the server. The file is part of every save, so your settings come back after every stop and restore.

Before you start

  • The server must be live. The file manager shows the server’s files while it runs. See The file manager.
  • The Control servers permission on the team, to edit files and restart. See Roles and permissions.

Steps

  1. Click Manage on your server’s card and open Advanced, then Files.

  2. Click server.properties in the server’s main folder and choose Edit.

    server.properties in the server's main folder in the file manager
    server.properties, in the server's main folder
  3. Change the values you want. Each line is key=value, with no spaces around the =.

    server.properties open in the editor with gamemode changed to creative and difficulty to hard
    One setting per line, key=value
  4. Save the file.

  5. Open the Console tab and run save-all, so the world is written to disk before the restart.

  6. Go to the General tab and click Restart server. Minecraft reads server.properties when it starts. The restart takes about 30 seconds and the address stays the same.

    The console after the restart, showing Default game type: CREATIVE in the startup log
    After the restart, the startup log shows the new default game mode

Some of these settings can also be changed live from the console, like difficulty hard or gamemode creative <player>. See Minecraft console commands.

Useful settings

KeyWhat it doesMinecraft’s default
difficultypeaceful, easy, normal or hard. On Paper (latest) it only sets the difficulty of a newly generated world: for your existing world, run difficulty hard (or another level) in the console instead.easy
gamemodeGame mode for new players: survival, creative, adventure or spectator. Players who’ve joined before keep theirs.survival
force-gamemodetrue puts every player into gamemode each time they join.false
hardcoretrue for hardcore: hard difficulty, and players become spectators when they die.false
max-playersHow many players can be online at once.20
motdThe message under the server’s name in players’ server lists.A Minecraft Server
pvpfalse stops players from hurting each other. Newer Minecraft versions moved this to a game rule: if your file has no pvp line, look for it with /gamerule in game.true
view-distanceHow far (in chunks) the server sends the world to players. Lower it if a SMALL server lags.10
simulation-distanceHow far (in chunks) from players mobs move and crops grow. Lowering it also saves CPU.10
spawn-protectionRadius around spawn where only operators can build. 0 turns it off. It only applies once there’s at least one operator.16
allow-flighttrue stops Minecraft from kicking players for flying. Turn it on if a plugin gives players flight.false
level-seedThe seed for the world. Only used when a new world is generated, so changing it does nothing to your existing world.empty (random)

The file may contain other keys, and their names can change between Minecraft versions. If a key you read about online isn’t in your file, it may have been renamed or turned into a game rule.

Managed by SLASHPLAY: don’t change

Your server relies on a few settings being exactly as they are:

The end of server.properties in the editor, with server-port=25565 highlighted
server-port, online-mode and white-list, further down the file
KeyKeep it atWhy
server-port25565SLASHPLAY connects your public address to this port inside the server. Change it and nobody can join.
level-nameworldOnly the world, world_nether and world_the_end folders are saved. A different name makes Minecraft create a world in a folder that isn’t saved, and it’s lost at the next stop. To use another world, see Upload your own world.
online-modetrueWith it on, Minecraft checks every player’s account with Mojang. Turned off, anyone can join under any name, including yours or an operator’s, which makes the whitelist and bans useless. Players’ inventories and positions are also tied to their verified account, so switching it would give everyone a fresh start.
white-listLeave it to the dashboardThe Whitelist switch on the Game-specific tab turns this on and off. Use the switch, so the panel and the file agree. See The Minecraft whitelist.
enable-rconfalseThe Console tab talks to Minecraft directly, not over RCON, and an RCON port isn’t reachable from outside anyway.

Troubleshooting

My change didn’t do anything. Check that you clicked Restart server after saving, and that nobody toggled the whitelist in between. Open the file again to see if your value is still there. For level-seed, remember it only affects a new world.

Nobody can connect after I edited the file. Check server-port is still 25565 and online-mode is true. If the server crashed, the crash box on the server page shows the last output, which usually names the bad line.

The server list shows odd characters in my MOTD. Keep the MOTD to plain text, or look up Minecraft’s formatting codes for colours.