Type the commands in the GamePanel console, without the /: op YourUsername to become an operator, whitelist on then whitelist add Username to only allow your players.
GamePanelConsole, server started.
op YourUsername: in-game admin rights.whitelist on: turns on the whitelist.whitelist add Usernamefor each allowed player,whitelist remove Usernameto remove one.
GamePanel console after op Steve, whitelist on and whitelist add Alex deop Usernameremoves operator rights,whitelist listshows the allowed players,whitelist offturns the whitelist off.
Common errors
- "You are not white-listed on this server!": check with
whitelist listthat the username is there, spelled correctly. - A player added before switching to cracked mode no longer gets in: their identifier (UUID) changed. Remove them, then add them again.
- A player already online stays after
whitelist on: setenforce-whitelist=trueinserver.properties, and players missing from the list are disconnected each time the list is reloaded (whitelist reload).
Both lists are saved in ops.json and whitelist.json, at the root of the server. After editing whitelist.json by hand, type whitelist reload.