Online mode vs cracked servers
Every Java Edition server has one setting that decides who can join and whether player names can be trusted: online-mode. This guide explains what it does, what changes when you turn it off, and how to run an offline server without letting strangers walk in as your staff.
What online-mode does
The setting lives in server.properties, and it is online-mode=true by default. When a player joins, their game proves to Mojang's servers that it is signed in to that Microsoft account, and your server asks Mojang to confirm. Only then is the player let in. That gives you:
- Only premium players. Everyone joining owns Java Edition.
- Trusted names. Nobody can join as you unless they have your account.
- Permanent IDs. Each player has a UUID tied to their account, so changing their name does not lose their inventory, homes or rank.
- Skins that load normally, and an encrypted connection.
With online-mode=false, often called offline or cracked mode, the server skips the check. Anyone with any launcher can join under any name, and their UUID is calculated from the name they typed.
Why people run offline servers
The usual reason is a group of friends where not everyone has a paid Java account. That is a fair choice to make, but offline mode moves the job of checking who is who from Mojang to you. The rest of this guide is about doing that job well.
The risks of offline mode
The big one is impersonation. The server cannot tell the real you from someone who types your name. If your name is an operator, anyone who joins as you is an operator too. They can give themselves items, ban your players, op their friends or damage the world with commands, and the logs will show your name doing it.
Permission plugins do not save you here. They store ranks by UUID, but in offline mode the UUID comes from the name, so the same name means the same UUID and the same rank. Your staff accounts are exactly as safe as their names are secret, which is not at all.
Other things to expect:
- Bans are easy to dodge. A banned player just picks a new name.
- No skins by default. Everyone looks like Steve or Alex unless you add a skin plugin.
- Name changes lose data. A new name is a new UUID, so the player starts again with an empty inventory.
Switching modes later is painful too. Every player's UUID changes when you switch in either direction, so inventories, homes, claims and ranks seem to vanish. The data still exists, but under the old IDs. Decide early, and take a backup before you ever switch.
Protecting an offline server
If you run in offline mode, add a login step so a name can only be used by the person it belongs to. There are two ways.
Login Protection
Pat Host servers have a Login Protection card in the Settings tab, made for offline servers. With it, players log in at the Pat Host lobby first: premium players pass a premium check, and everyone else uses a password. Only then are they transferred to your server, so a name only gets in with its owner's account or password.
An auth plugin
Auth plugins such as AuthMe Reloaded or nLogin do the same job on your own server. Each player registers a password the first time (usually /register) and logs in each time after that (/login). Until they log in they cannot move, chat or use commands. Some plugins can skip the password for premium players.
Use one or the other, not both, or players will have to log in twice. If you choose a plugin, download it from its official page; see plugin safety checks for why that matters.
Good habits either way
- Keep the operator list short, and give staff the permissions they need through a permissions plugin instead.
- Ask staff to use passwords they use nowhere else.
- Run admin commands from the panel console where you can, since it needs no in-game account.
- Take regular backups, so damage can be undone.
Why offline launchers cannot join premium servers
An offline launcher has no Microsoft sign-in, so it cannot give the server the proof it asks for. The server asks Mojang, Mojang has no matching login, and the player is disconnected with "Failed to verify username!". Nothing on the player's side changes this; only the owner can switch the server's mode.
Some third-party launchers can also sign in with a real Microsoft account, and then they join premium servers like the official launcher does. Premium players can always join offline servers.
If a premium player sees "Invalid session", their sign-in has expired. Restarting the launcher and signing in again fixes it.
Bedrock players and Floodgate
Bedrock players do not have Java accounts at all, so they need a different route in. When you turn on Crossplay, Geyser lets Bedrock players connect, and Floodgate lets them join with their Microsoft account, without owning Java Edition. This works on servers with online-mode=true, so you can keep online mode and still welcome phone and console players.
Floodgate gives Bedrock players a name prefix, such as a dot at the start, so a Bedrock name can never clash with a Java name. Use the prefixed name for permissions and whitelists. See the crossplay guide.
Which should you choose?
- Public server, or everyone has Java: online mode.
- Java and Bedrock players, no cracked accounts: online mode with Crossplay.
- Some players without paid accounts: offline mode with Login Protection or an auth plugin, never offline mode on its own.
On a proxy network, the proxy does the account check and the backends run with online-mode=false behind forwarding. That is not a cracked server; see BungeeCord or Velocity?
Changing the setting
- Take a backup in the Backups tab.
- Stop the server.
- In the Files tab, open
server.propertiesand setonline-modetotrueorfalse. - Start the server. Remember that every player's UUID changes.
Common problems
- "Failed to verify username!": an offline launcher on a premium server.
- Inventories gone after switching modes: the UUIDs changed. Restore the backup, or switch back.
- Everyone has a default skin: normal in offline mode without a skin plugin.
- Someone joined as a staff member: turn on Login Protection or an auth plugin straight away, check your operators and ranks, and restore a backup if anything was damaged.
More joining problems are covered in fixing "Failed to connect", and the hub's own login is explained in joining the hub.
