Console & Commands
Command Reference
Complete reference of Minecraft server commands available through the console.
This reference covers the most commonly used Minecraft server commands. All commands are entered in the console without the / prefix.
Player Management
| Command | Description |
|---|---|
| op <player> | Grant operator (admin) status to a player |
| deop <player> | Remove operator status from a player |
| kick <player> [reason] | Kick a player from the server |
| ban <player> [reason] | Ban a player from the server |
| ban-ip <ip> [reason] | Ban an IP address |
| pardon <player> | Remove a player from the ban list |
| pardon-ip <ip> | Remove an IP from the ban list |
| whitelist add <player> | Add a player to the whitelist |
| whitelist remove <player> | Remove a player from the whitelist |
| whitelist list | Show all whitelisted players |
World & Gameplay
| Command | Description |
|---|---|
| save-all | Force save the world to disk |
| save-off | Disable automatic saving (for backups) |
| save-on | Re-enable automatic saving |
| time set <value> | Set time (day, night, noon, midnight, or ticks) |
| weather <type> | Set weather (clear, rain, thunder) |
| difficulty <level> | Set difficulty (peaceful, easy, normal, hard) |
| gamemode <mode> [player] | Set gamemode (survival, creative, adventure, spectator) |
| gamerule <rule> [value] | View or set game rules |
Server Management
| Command | Description |
|---|---|
| list | Show online players |
| say <message> | Broadcast a message to all players |
| tell <player> <message> | Send a private message to a player |
| stop | Stop the server gracefully |
| reload | Reload datapacks and some configurations |
| seed | Display the world seed |
Teleportation
| Command | Description |
|---|---|
| tp <player> <x> <y> <z> | Teleport player to coordinates |
| tp <player> <target> | Teleport player to another player |
| setworldspawn <x> <y> <z> | Set the world spawn point |
Common Game Rules
Use gamerule <rule> true/false to toggle these settings:
| Rule | Description | Default |
|---|---|---|
| keepInventory | Keep inventory on death | false |
| mobGriefing | Mobs can destroy blocks | true |
| doDaylightCycle | Time passes naturally | true |
| doWeatherCycle | Weather changes naturally | true |
| announceAdvancements | Announce achievements in chat | true |
| playersSleepingPercentage | % of players needed to skip night | 100 |