server.properties generator

Every common setting, explained. Pick a preset, adjust what you need, then download the file.

Start from a preset

Or paste your existing server.properties

Gameplay

Gameplay

The game mode new players start in.

Put players back into the default game mode every time they join.

How strong mobs are and whether hunger can kill you. Peaceful removes hostile mobs.

Players are banned (put into spectator) when they die, and difficulty is locked to hard.

Whether players can damage each other. On the newest versions this may be the pvp game rule instead.

Stops the server kicking players for flying. Turn it on if you use mods or plugins that let players fly.

Radius around spawn, in blocks, that only operators can build in. 0 turns it off.

World

World

The world folder name. Change it to load a different world folder.

Seed for a new world. Leave empty for a random one. Ignored once the world exists.

Terrain style for a new world. Amplified needs much more CPU.

Whether villages, temples and other structures generate in new chunks.

Whether players can travel to the Nether.

Radius of the world border in blocks. Lower it to cap how far players can explore.

Players

Players

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

Most players who can be online at once.

Only players on the whitelist can join. Add them with /whitelist add <name>.

Kick players who are online but not on the whitelist when it reloads.

What operators can do: 1 bypass spawn protection, 2 cheats, 3 kick and ban, 4 everything including /stop.

Kick players who are idle for this many minutes. 0 turns it off.

Hide the list of online players from the server list.

Performance

Performance

How many chunks around each player are sent to them. The biggest single factor in RAM and CPU use.

How many chunks around each player have mobs, crops and redstone running. Keep it at or below view distance.

How far away entities are shown to players, as a percentage. Lowering it saves bandwidth and client FPS.

Packets bigger than this many bytes are compressed. -1 turns compression off (only useful on a local network).

If one tick takes longer than this many milliseconds, the watchdog stops the server. -1 turns it off.

Write chunks to disk synchronously. Safer against corruption; turning it off can help on slow disks.

Network

Network

The port players connect on. 25565 lets them leave the port off the address.

Bind to one IP address. Leave empty to listen on all of them, which is almost always right.

Show the server as online in the multiplayer list.

Turn on the GameSpy4 query protocol, used by some server list websites.

Port for the query protocol.

Accept players sent here from another server with /transfer (1.20.5 and newer).

Allow remote console access over the network. Gives full control of the server.

Port for RCON. Don't open it to the internet.

Password for RCON. Use a long random one.

Resource pack

Resource pack

Direct download URL of a resource pack players are offered when they join. Leave empty for none.

SHA-1 hash of the pack, so players re-download it only when it changes.

Kick players who decline the resource pack.

Message shown when players are asked to accept the pack.

Security

Security

Check every player's account with Mojang. Only turn it off behind a proxy like Velocity that does this check itself.

Require players to have a Mojang-signed chat key. Turn it off only if players can't join because of chat signing.

Kick players whose connection comes from a different IP than the one Mojang saw. Can block VPN users.

Allow command blocks to run. Only operators can place or edit them.

Write players' IP addresses to the server log. Turn it off if you'd rather not store them.

Kick players who send more than this many packets per second. 0 turns it off.

About server.properties

server.properties is the main settings file for a Java Edition server. Each line is one setting as key=value. Most changes need a server restart to take effect.

Settings that only affect new chunks, like level-seed and level-type, do nothing on an existing world. Delete or rename the world folder to generate a new one.

Frequently asked questions

Where is server.properties?

In the main server folder, next to the server jar. It's created the first time the server starts. Stop the server before editing it, or your changes may be overwritten.

What does online-mode do?

online-mode=true makes the server check every player's account with Mojang. Turning it off lets anyone join with any username, so only do it behind a proxy like Velocity that checks accounts itself.

What view-distance should I use?

8–10 suits most servers. Lower it to 6 on small or busy servers. Keep simulation-distance at or below view-distance; 6–8 is a good balance.

How do I make my server whitelist-only?

Set white-list=true and enforce-whitelist=true, then add players with /whitelist add <name>. The Friends SMP preset does this for you.

How do I change the server's name in the multiplayer list?

Edit motd. You can use § colour codes, such as §a for green; the generator escapes them correctly in the file.

Guides

Embed this tool

Add it to your guide, wiki or forum post for free. Paste this where you want it to appear:

HTML
<iframe src="https://spawnkit.dev/embed/server-properties" width="100%" height="1400" style="border:0" loading="lazy" title="Minecraft server.properties generator"></iframe>

More setup tools