Skip to main content
All tools

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

gamemode

Default mode for new players.

difficulty

World difficulty level.

hardcore

Single life; death switches to spectator. Forces hard difficulty.

pvp

Allow players to damage each other.

allow-flight

Allow flight for mods/plugins. Without it, flying players may be kicked.

enable-command-block

Enable command blocks in the world.

Players

max-players

Maximum players online at once.

online-mode

Verify accounts against Mojang. Turn off only for cracked servers.

white-list

Only whitelisted players can join.

enforce-whitelist

Kick non-whitelisted players when the whitelist changes.

player-idle-timeout

Minutes before an idle player is kicked (0 = disabled).

World

level-name

World folder name.

level-seed

Seed for world generation (blank = random).

level-type

World generation type.

spawn-monsters

Allow monsters to spawn.

allow-nether

Allow the Nether dimension.

view-distance

Chunk view distance sent to clients.

simulation-distance

Chunks simulated (entities, redstone).

spawn-protection

Protected block radius around spawn (0 = disabled).

Network

server-port

Port the server listens on.

motd

Message shown in the server list. Supports § color codes.

server.properties
# 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.