Set Up a Minecraft Whitelist: Add and Remove Friends
Manage Minecraft Java server access with the built-in whitelist commands, then test entry and remove players when needed.
The whitelist lets you decide which accounts may join your Minecraft Java server. Add Java player names first, then enable the whitelist in the server console. For Vanilla and Paper, you can manage it with the built-in Java commands; Paper describes the whitelist as an access list for selected players (PaperMC: Next steps).
The command forms shown here were checked against the official Vanilla Java server artifact for version 26.3 (Mojang: Minecraft Java Server 26.3). Paper also recommends managing the whitelist with the built-in commands (PaperMC: Vanilla data files). Commands can differ on older versions and other forks; in that case, use /help whitelist or your console's suggestions.
Requirements
You need access to the running server console, for example, the console in your panel. Alternatively, you can run the commands in in-game chat if your account has the necessary command permissions there. In the console, enter the command without a leading slash; in in-game chat, start it with /.
This guide is for Minecraft: Java Edition. Use the Java profile name your friend uses to sign in, not a Bedrock gamertag. Leave online-mode=true enabled: this setting lets the server authenticate Minecraft accounts and is separate from the whitelist (PaperMC: server.properties). Do not change it as a shortcut when a profile name is not recognized.
Add friends and enable the whitelist
Run the commands in this order and replace Spielname with the Java profile name. In a panel console, you can enter the lines without /:
whitelist add Spielname
whitelist list
Enable the whitelist only if it is not already on: whitelist on. If the server reports that it is already active, continue with whitelist list and the access test. In in-game chat, add a slash before the command, for example, /whitelist add Spielname or /whitelist on. The account running the command in chat must be authorized to do so. Since Java 26.3, white-list defaults to true; an existing server.properties may contain a different value. Paper also documents true as the default (Mojang: Java 26.3 release notes, PaperMC: server.properties). Check the actual state of your server.
The list shown by whitelist list should contain the Java players you added. whitelist on enables the access restriction. Paper documents the white-list setting in server.properties; you normally do not need to edit the file for this because the command manages the setting (PaperMC: server.properties).
Paper stores entries in whitelist.json together with the UUID and name of the player profile. The file is part of the server's data, not an ordinary configuration file; Paper recommends managing it with /whitelist instead of editing it by hand (PaperMC: Vanilla data files).
Check access and remove a player
Ask an added friend to connect with Java Edition. Then check that the server denies entry to an unbanned account that is not on the list and is not an operator. In the Vanilla Java 26.3 server artifact, an operator counts as allowed when the whitelist is active. The checked Paper source revision uses the same basic rule; a plugin can affect the subsequent whitelist check through an event (Mojang: Minecraft Java Server 26.3, PaperMC: PlayerList, commit from October 6, 2026). So if you want to revoke someone's access, also check their operator status and, if necessary, remove it first with deop; the steps are in granting Minecraft operator permissions safely. If access is denied, first compare the edition, profile name, and server console output.
If someone should no longer have access, remove the entry and check the list again. If the person is an operator, revoke operator status as well.
whitelist remove Spielname
whitelist list
Removing someone from the list and turning off the whitelist are two different things. whitelist off disables the access restriction for everyone; use this command only if players who are not listed should also be allowed to join. Vanilla Java 26.3 runs a kick check after whitelist remove. It applies only when enforce-whitelist=true and the whitelist is active. Paper documents false as the default and explains that, when set to true, unlisted players are kicked. With Paper's default value, removing a player blocks future joins but does not automatically disconnect an ongoing session. Check the value and documentation for your server version (Mojang: Minecraft Java Server 26.3, PaperMC: server.properties).
Common errors
- Player not found: Check that this is the current Java profile name. A Bedrock gamertag is not covered by this guide. Read the exact message in the server console before changing other settings.
- Entry exists, but your friend still cannot join: Check that
whitelist listshows the expected name and that the whitelist is still active. Also check that your friend is using Java Edition and a version compatible with the server. - Command is denied: Use the server console without
/. In in-game chat, your account needs the required permission. Paper lists the Vanilla whitelist as a protected command; an ordinary player does not automatically have access (PaperMC: Permissions). - You edited
whitelist.json: Paper advises against direct changes to this server-managed file. Manage entries with/whitelistgoing forward and check the result withwhitelist list.
If the console itself is unavailable or the server reports errors at startup, see Minecraft server will not start. For separate access rights for administrators and helpers, read granting Minecraft operator permissions safely; for additional server functions, see installing Minecraft server plugins.
Sources
- PaperMC: Next steps
- PaperMC: Vanilla data files
- PaperMC: server.properties
- PaperMC: Permissions
- Mojang: Minecraft Java Edition 26.3 release notes
- Mojang: Original Minecraft Java server artifact 26.3 — SHA-1
33680f5f2ac32864d6d7cf5e56a705fdb3e05f4c; command forms, profile arguments, permission checks, operator exception, and kick check for Vanilla Java 26.3. - PaperMC: PlayerList source patch, commit
a4b87cf
Did this guide help? We are happy to help personally.