Online mode vs offline mode on a Minecraft server

By Kosy · · 2 min read

online-mode is one line in server.properties, and it decides whether the server checks players against Mojang or Microsoft accounts.

What it does

  • online-mode=true (the default): when a player joins, the server asks the account service to confirm that they own the name. Skins, UUIDs and bans follow the real account.
  • online-mode=false: the server trusts whatever name the client sends. Anyone can join as anyone, including as an operator.

Why leaving it off is risky

If someone knows an operator's name, they can join with it and get operator rights. That is why the security checklist says to keep online mode on, and why a whitelist alone does not protect an offline-mode server: the whitelist trusts names too.

Offline UUIDs

With online mode off, a player's UUID is made from their name alone, so it differs from their real UUID. Their inventory and permissions are tied to that name-based UUID, and switching a server between modes makes players look like new people. The offline UUID generator shows the UUID a name gets, and builds whitelist.json and ops.json.

The one good reason to turn it off

A proxy such as Velocity or BungeeCord sits in front of several servers and does the account check itself. The servers behind it run with online mode off, because only the proxy can reach them. That setup is safe only if the backend servers are not reachable from the internet, or they accept connections only from the proxy using the proxy's forwarding secret. See how to make a network with Velocity.

Cracked players

Turning online mode off so people without a purchased account can join is a trade: it opens the server to impersonation and it does not fit a public server. If you do it for a private group, add an authentication plugin and keep the group small.

In short

Leave online-mode=true unless a proxy in front of the server is doing the check. Change it, then restart the server for it to apply.

More to read