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=20Recommended RAM and View Distance by Player Count
Each player adds significant load — chunk loading, mob ticking, network sync. Match your view distance and RAM to your peak player count:
| Players | Recommended RAM | view-distance | simulation-distance |
|---|---|---|---|
| 1–10 | 2–4 GB | 10 | 8 |
| 10–20 | 4–6 GB | 8 | 6 |
| 20–50 | 6–10 GB | 6 | 4 |
| 50–100 | 10–16 GB | 4–6 | 4 |
| 100+ | 16 GB+ | 4 | 4 |
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.
Related Guides
How is this guide?

Minecraft Server Performance Optimization Guide
Reduce lag, improve TPS, and optimize your Minecraft Java server with the right software, JVM flags, view distance tuning, and anti-lag plugins.
How to Use the Player Manager on Your Minecraft Server
Manage online players, operators, whitelist, bans, and player data using the built-in Player Manager in the XGamingServer panel.