How to Change Max Players on Your Minecraft Server

Set the maximum player count on your Minecraft Java server, with RAM and view-distance recommendations.

The default max-players value on a fresh Minecraft server is 20. You can raise or lower this based on your server plan and gameplay style.

Open Startup

In the XGamingServer Panel, click Startup in the sidebar.

Set Max Players

Find the Max Players field and enter your desired count.

Restart

Restart from Console to apply.

Open server.properties

Click Files in the sidebar and open server.properties.

Set max-players

max-players=20

Each player adds significant load — chunk loading, mob ticking, network sync. Match your view distance and RAM to your peak player count:

PlayersRecommended RAMview-distancesimulation-distance
1–102–4 GB108
10–204–6 GB86
20–506–10 GB64
50–10010–16 GB4–64
100+16 GB+44

Tip: If your server is hitting performance limits, lower view-distance and simulation-distance before adding more RAM. View distance has the biggest performance impact of any single setting. See the Performance Guide for full tuning.

Bypass Player Limit for Admins

Admins can bypass the player limit by setting bypassesPlayerLimit: true in ops.json:

{
  "uuid": "...",
  "name": "AdminName",
  "level": 4,
  "bypassesPlayerLimit": true
}

This lets you join your own server even when it's at max capacity — useful for managing a full server during peak hours.

Set Maximum to Unlimited

Setting max-players=-1 removes the player cap entirely. Not recommended — without a cap, the server can be DDoS'd by automated connection floods.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page