Commands Cheat Sheet

Essential Minecraft server commands for operators, including player management, world control, and administration.

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

CommandDescription
/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

CommandDescription
/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.
/banlistShows all banned players.

Whitelist

CommandDescription
/whitelist onEnables the whitelist. Only listed players can join.
/whitelist offDisables the whitelist. Anyone can join.
/whitelist add <player>Adds a player to the whitelist.
/whitelist remove <player>Removes a player from the whitelist.
/whitelist listShows all whitelisted players.
/whitelist reloadReloads the whitelist from file.

Teleportation

CommandDescription
/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

CommandDescription
/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

CommandDescription
/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

CommandDescription
/time set daySets the time to daytime (1000 ticks).
/time set nightSets the time to nighttime (13000 ticks).
/time set noonSets the time to noon (6000 ticks).
/time set midnightSets 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

CommandDescription
/difficulty peacefulNo hostile mobs, instant health regen.
/difficulty easyHostile mobs deal less damage.
/difficulty normalStandard difficulty.
/difficulty hardMaximum difficulty.

World Management

CommandDescription
/seedDisplays 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.

CommandDescription
/gamerule keepInventory truePlayers keep inventory on death.
/gamerule doDaylightCycle falseStops the day/night cycle.
/gamerule doWeatherCycle falseStops weather changes.
/gamerule doMobSpawning falseDisables mob spawning.
/gamerule doFireTick falsePrevents fire from spreading.
/gamerule mobGriefing falsePrevents mobs from destroying blocks.
/gamerule announceAdvancements falseHides advancement messages.
/gamerule showDeathMessages trueShows death messages in chat.
/gamerule playersSleepingPercentage 50Percentage of players needed to skip night.
/gamerule spawnRadius 10Sets spawn area radius.

Server Management

CommandDescription
/say <message>Broadcasts a message to all players.
/tell <player> <message>Sends a private message to a player.
/listShows all online players.
/stopSaves and stops the server.
/save-allSaves all world data.
/reloadReloads data packs and some configurations.

Plugin Commands (Paper/Spigot/Purpur)

If you are running a plugin-based server, these additional commands are available:

CommandDescription
/plugins or /plLists all installed plugins.
/timings onStarts recording server performance timings (Paper).
/timings reportGenerates a performance report URL (Paper).
/spark profilerStarts the Spark profiler (if installed).
/spark tpsShows 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.