Server setup
server.properties Generator
Build a valid server.properties file from a form, with each setting explained.
Set the common server options, then copy or download the server.properties file. Pairs well with the startup flags generator.
Gameplay
gamemodeDefault mode for new players.
difficultyWorld difficulty level.
hardcoreSingle life; death switches to spectator. Forces hard difficulty.
pvpAllow players to damage each other.
allow-flightAllow flight for mods/plugins. Without it, flying players may be kicked.
enable-command-blockEnable command blocks in the world.
Players
max-playersMaximum players online at once.
online-modeVerify accounts against Mojang. Turn off only for cracked servers.
white-listOnly whitelisted players can join.
enforce-whitelistKick non-whitelisted players when the whitelist changes.
player-idle-timeoutMinutes before an idle player is kicked (0 = disabled).
World
level-nameWorld folder name.
level-seedSeed for world generation (blank = random).
level-typeWorld generation type.
spawn-monstersAllow monsters to spawn.
allow-netherAllow the Nether dimension.
view-distanceChunk view distance sent to clients.
simulation-distanceChunks simulated (entities, redstone).
spawn-protectionProtected block radius around spawn (0 = disabled).
Network
server-portPort the server listens on.
motdMessage shown in the server list. Supports § color codes.
# Minecraft server properties
# Generated by minecraftserver.id/tools (targets MC 1.21)
gamemode=survival
difficulty=easy
hardcore=false
pvp=true
allow-flight=false
enable-command-block=false
max-players=20
online-mode=true
white-list=false
enforce-whitelist=false
player-idle-timeout=0
level-name=world
level-seed=
level-type=minecraft:normal
spawn-monsters=true
allow-nether=true
view-distance=10
simulation-distance=10
spawn-protection=16
server-port=25565
motd=A Minecraft Server
Key names and defaults follow Minecraft 1.21.x and may differ on other versions. This covers the commonly-changed settings; other keys keep their defaults.