Guide · Configuration

online-mode explained: true vs false

online-mode decides whether the server checks that each player owns a real Minecraft account. It is a single line in server.properties, and getting it wrong is one of the easiest ways to have a server griefed.

What online-mode=true does

When a player joins, the server asks Mojang's session servers to confirm that the account is genuine and is logged in. The player is then identified by a permanent UUID tied to that account, which is what bans, whitelists, operator status, inventories and plugin data are all keyed on.

Why online-mode=false is dangerous

With online-mode off, the server believes whatever name the client sends. Anyone can join as your username, and if you are an operator, they join as an operator. Whitelists and bans become trivial to bypass because names, not accounts, are checked.

Password plugins can patch over this partly, but they add friction for every player and do nothing to stop impersonation of players who have not registered yet.

The case where false is correct

Behind a proxy such as Velocity or BungeeCord, the proxy authenticates players and forwards their identity to the backend servers. In that setup the proxy runs with online-mode=true, and each backend runs with online-mode=false and player info forwarding enabled. The backends must then be unreachable from the internet, or anyone can connect to them directly and skip authentication.

Switching modes on an existing server

Online and offline players get different UUIDs for the same name. Switching modes makes every player look new: inventories, positions, claims and permissions are attached to the old UUIDs. Migration tools exist, but it is far easier to choose correctly from the start.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Should my Minecraft server be online-mode true?
Yes, unless it is a backend server behind a proxy that already authenticates players.
Can Bedrock players join an online-mode server?
Yes, through Geyser and Floodgate. Floodgate verifies the player's Xbox account, so the Java server can stay in online mode.
Why does "Failed to verify username" appear?
The session check with Mojang failed. Usually the player's launcher session is stale, so restarting the launcher fixes it. It can also mean an authentication outage.