Minecraft Admin & Basic Commands
Managing a Minecraft server requires knowing the essential console and chat commands. Below is a reference for the most critical administrative tasks.
Becoming an Operator (OP)
To give yourself full administrative rights, run this command in the server console (not in-game):
op YourUsername
Once you are OP, you can run commands in-game by pressing /.
Player Management
| Command | Description |
|---|---|
/kick [player] [reason] |
Disconnects a player from the server immediately. |
/ban [player] [reason] |
Permanently prevents a player from joining. |
/ban-ip [player] |
Bans the player's IP address (prevents alt accounts). |
/pardon [player] |
Unbans a player. |
/tp [target] [destination] |
Teleports a player to another player or coordinate. |
Game Mode & Difficulty
/gamemode creative [player]- Switch to Creative mode (invincible, flying)./gamemode survival [player]- Switch back to Survival mode./gamemode spectator [player]- Fly through blocks invisible./difficulty [easy|normal|hard]- Change the server difficulty.
Whitelist Management
A whitelist prevents unauthorized players from joining. By default, it is off.
/whitelist on
/whitelist add [friend_username]
/whitelist list
Always reload the whitelist after manual edits with /whitelist reload.