Commands Cheat Sheet
This is a quick reference for the most commonly used Minecraft server commands. All commands can be run from the server console in your dashboard at Dashboard or in-game by an operator (op).
When running commands from the console, omit the leading /. For example, type op PlayerName in the console instead of /op PlayerName.
Operator Management
| Command | Description |
|---|
/op <player> | Grants operator (admin) permissions to a player. |
/deop <player> | Removes operator permissions from a player. |
Operators have full access to all server commands by default. Be careful who you grant op to.
Player Management
| Command | Description |
|---|
/kick <player> [reason] | Kicks a player from the server. |
/ban <player> [reason] | Bans a player from the server permanently. |
/ban-ip <ip> [reason] | Bans an IP address from the server. |
/pardon <player> | Unbans a player. |
/pardon-ip <ip> | Unbans an IP address. |
/banlist | Shows all banned players. |
Whitelist
| Command | Description |
|---|
/whitelist on | Enables the whitelist. Only listed players can join. |
/whitelist off | Disables the whitelist. Anyone can join. |
/whitelist add <player> | Adds a player to the whitelist. |
/whitelist remove <player> | Removes a player from the whitelist. |
/whitelist list | Shows all whitelisted players. |
/whitelist reload | Reloads the whitelist from file. |
Teleportation
| Command | Description |
|---|
/tp <player> <target> | Teleports one player to another. |
/tp <player> <x> <y> <z> | Teleports a player to specific coordinates. |
/tp <player> ~ ~ ~ | Teleports relative to current position. |
Gamemode
| Command | Description |
|---|
/gamemode survival <player> | Sets a player to Survival mode. |
/gamemode creative <player> | Sets a player to Creative mode. |
/gamemode adventure <player> | Sets a player to Adventure mode. |
/gamemode spectator <player> | Sets a player to Spectator mode. |
/defaultgamemode <mode> | Changes the default gamemode for new players. |
Items and Inventory
| Command | Description |
|---|
/give <player> <item> [amount] | Gives a player an item. |
/clear <player> [item] | Clears a player’s inventory (or a specific item). |
/enchant <player> <enchantment> [level] | Enchants the held item. |
Examples
/give Steve diamond 64
/give Steve diamond_sword 1
/clear Steve
/clear Steve dirt
Time and Weather
| Command | Description |
|---|
/time set day | Sets the time to daytime (1000 ticks). |
/time set night | Sets the time to nighttime (13000 ticks). |
/time set noon | Sets the time to noon (6000 ticks). |
/time set midnight | Sets the time to midnight (18000 ticks). |
/time set <ticks> | Sets the time to a specific tick value. |
/time add <ticks> | Advances the time by a number of ticks. |
/weather clear [seconds] | Sets clear weather. |
/weather rain [seconds] | Sets rainy weather. |
/weather thunder [seconds] | Sets thunderstorm weather. |
Difficulty
| Command | Description |
|---|
/difficulty peaceful | No hostile mobs, instant health regen. |
/difficulty easy | Hostile mobs deal less damage. |
/difficulty normal | Standard difficulty. |
/difficulty hard | Maximum difficulty. |
World Management
| Command | Description |
|---|
/seed | Displays the world seed. |
/setworldspawn <x> <y> <z> | Sets the world spawn point. |
/worldborder set <size> | Sets the world border diameter in blocks. |
/worldborder center <x> <z> | Sets the center of the world border. |
/worldborder add <size> [time] | Gradually increases the world border. |
Game Rules
Game rules let you toggle specific mechanics without plugins.
| Command | Description |
|---|
/gamerule keepInventory true | Players keep inventory on death. |
/gamerule doDaylightCycle false | Stops the day/night cycle. |
/gamerule doWeatherCycle false | Stops weather changes. |
/gamerule doMobSpawning false | Disables mob spawning. |
/gamerule doFireTick false | Prevents fire from spreading. |
/gamerule mobGriefing false | Prevents mobs from destroying blocks. |
/gamerule announceAdvancements false | Hides advancement messages. |
/gamerule showDeathMessages true | Shows death messages in chat. |
/gamerule playersSleepingPercentage 50 | Percentage of players needed to skip night. |
/gamerule spawnRadius 10 | Sets spawn area radius. |
Server Management
| Command | Description |
|---|
/say <message> | Broadcasts a message to all players. |
/tell <player> <message> | Sends a private message to a player. |
/list | Shows all online players. |
/stop | Saves and stops the server. |
/save-all | Saves all world data. |
/reload | Reloads data packs and some configurations. |
Plugin Commands (Paper/Spigot/Purpur)
If you are running a plugin-based server, these additional commands are available:
| Command | Description |
|---|
/plugins or /pl | Lists all installed plugins. |
/timings on | Starts recording server performance timings (Paper). |
/timings report | Generates a performance report URL (Paper). |
/spark profiler | Starts the Spark profiler (if installed). |
/spark tps | Shows current TPS with Spark (if installed). |
Useful Tips
- Tab completion: Most commands support tab completion for player names and arguments. This works in-game but not in the console.
- Target selectors: Use
@a (all players), @p (nearest player), @r (random player), @s (self) in commands. For example, /tp @a 0 100 0 teleports all players.
- Console vs in-game: The console always runs commands with maximum permissions. In-game, you need operator status.
- Command blocks: For automated or repeating commands, use command blocks (obtained with
/give @s command_block).
Need Help?
For command-related questions or server administration help, join our Discord.