server.properties Generator

Set up your Minecraft server's server.properties with every common setting explained in plain English, then copy or download the file. Already have one? Paste it into the server.properties checker.

General

MOTD motd

The message under your server's name in the multiplayer list.

Use & codes for colour. For two lines, gradients and a preview, use the MOTD generator.

Port server-port

The port players connect on. 25565 lets them join without typing a port.

Max players max-players

How many players can be online at once.

Online mode online-mode

Checks every player owns a real Minecraft account. Only turn this off on servers behind a proxy (Velocity or BungeeCord) that does the check instead.

Whitelist white-list

Only players on the whitelist can join.

Enforce whitelist enforce-whitelist

Kicks players who aren't on the whitelist when it's turned on or reloaded.

Gameplay

PvP pvp

Players can hurt each other. On the newest versions this may be controlled by the pvp game rule instead.

Game mode gamemode

The game mode new players start in.

Force game mode force-gamemode

Puts players back in the default game mode every time they join.

Difficulty difficulty

How hard mobs hit and whether hunger can kill you.

Hardcore hardcore

Hard difficulty, and players are put in spectator mode when they die.

Allow flight allow-flight

Stops the server kicking players for flying. Turn on if you use fly plugins or mods like jetpacks.

Spawn protection spawn-protection

Radius (in blocks) around spawn that only operators can build in. 0 turns it off. Only works once at least one operator exists.

Idle kick (minutes) player-idle-timeout

Kicks players who do nothing for this many minutes. 0 never kicks.

World

World folder level-name

The folder the world is saved in. Change it to start a new world or load a different one.

Seed level-seed

Seed for a new world. Leave empty for a random one. Has no effect once the world exists.

World type level-type

The kind of world to generate. Has no effect once the world exists.

Generate structures generate-structures

Villages, temples, strongholds and so on appear in new chunks.

World border radius max-world-size

How far the world border reaches from the centre, in blocks.

Performance

View distance view-distance

How many chunks around each player are sent to them. The biggest single setting for performance.

Simulation distance simulation-distance

How many chunks around each player keep ticking (mobs, crops, redstone). Lowering it helps a lot.

Entity visibility % entity-broadcast-range-percentage

How far away players can see entities, as a percentage of the normal distance.

Network compression network-compression-threshold

Packets bigger than this many bytes are compressed. -1 turns compression off (only sensible behind a proxy on the same machine).

Sync chunk writes sync-chunk-writes

Saves chunks immediately, which is safer in a crash but slower.

Pause when empty (seconds) pause-when-empty-seconds

Pauses the world this many seconds after everyone leaves (1.21.2+). Farms and redstone stop while paused. 0 never pauses.

Advanced

Command blocks enable-command-block

Lets command blocks run.

Operator level op-permission-level

What operators can do: 1 bypass spawn protection, 2 cheat commands, 3 player management, 4 everything.

Hide player list hide-online-players

Hides who's online from the server list.

Show as online enable-status

Answers server-list pings. Turning it off makes the server look offline to everyone.

Secure chat enforce-secure-profile

Requires signed chat messages (1.19+).

Server IP server-ip

Leave empty unless your host tells you to set it. A wrong value stops the server starting.

RCON enable-rcon

Remote console access. Gives full control of the server to anyone with the password.

RCON port rcon.port

Port for remote console access.

RCON password rcon.password

Password for remote console access. Use a long random one.

Query enable-query

Lets tools fetch detailed server info (GameSpy4 protocol).

Query port query.port

Port for query requests.

Resource pack URL resource-pack

Direct download link to a resource pack players are offered when joining.

Resource pack SHA-1 resource-pack-sha1

Checksum of the pack, so players only re-download it when it changes.

Require resource pack require-resource-pack

Kicks players who decline the resource pack.

Resource pack message resource-pack-prompt

Message shown when players are asked to download the pack.

Log IPs log-ips

Writes players' IP addresses to the server log.

Accept transfers accepts-transfers

Lets other servers send players here with the /transfer command (1.20.5+).

Worth knowing

The world pauses when nobody is online, so farms and redstone stop too. Set it to 0 if you want them to keep running.
Spawn protection only applies once at least one player is an operator (/op).

server.properties

Stop the server, replace the file, then start it again. Settings not listed here keep their defaults.

969 characters