FreeGameHost.xyz

Minecraft Server Commands: Complete List & Cheat Sheet 2026

By FreeGameHost Team  •  Updated May 2026  •  8 min read

Running a Minecraft server means knowing the right commands. This page is the complete reference — every important vanilla op command, EssentialsX command, and console-only command, organised by category so you can find what you need fast.

Bookmark this page. You'll come back to it.

Console vs in-game: Commands run from the server console do not need a leading /. Commands typed in-game by an OP player do need the /. All examples below use the in-game format (with /). Drop the slash when typing in the console.

Jump to section

  1. Player management
  2. Permissions & OP
  3. World & environment
  4. Teleport & location
  5. Items & inventory
  6. Server management
  7. EssentialsX commands
  8. LuckPerms commands

Player management

Vanilla
CommandWhat it does
/kick [player] [reason]Removes a player from the server with an optional message
/ban [player] [reason]Permanently bans a player by username
/ban-ip [player/IP]Bans a player by their IP address
/banlistLists all currently banned players
/unban [player]Removes a ban (also written as /pardon)
/pardon-ip [IP]Removes an IP ban
/listShows all currently online players and the player count
/msg [player] [message]Sends a private message to a player (also /tell, /w)
/kill [player]Kills the specified player (or yourself if no target given)

Permissions & OP

Vanilla
CommandWhat it does
/op [player]Gives a player full operator (admin) status
/deop [player]Removes operator status from a player
/opsLists all current operators (console only)
/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 listLists all whitelisted players
/whitelist reloadReloads the whitelist from file (after manual edits)
OP levels: Vanilla Minecraft has 4 OP levels (1–4). Level 4 is full admin. Set the default OP level in server.properties with op-permission-level=4. If you use LuckPerms, skip native OP and manage permissions through LuckPerms groups instead.

World & environment

Vanilla
CommandWhat it does
/gamemode survival [player]Sets gamemode to survival (also: creative, adventure, spectator)
/defaultgamemode [mode]Sets the default gamemode for new players joining
/difficulty [level]Sets difficulty: peaceful, easy, normal, hard
/time set daySets world time to day (also: night, noon, midnight, or a number 0–24000)
/time add [amount]Adds ticks to the current world time
/weather clear [seconds]Sets weather to clear for a duration
/weather rain [seconds]Sets weather to rain
/weather thunder [seconds]Sets weather to thunder
/gamerule [rule] [value]Changes a gamerule. See common gamerules below.
/setworldspawn [x y z]Sets the world spawn point (where new players appear)
/seedDisplays the current world seed
/forceload add [chunk]Forces a chunk to stay loaded even with no players nearby

Essential gamerules

GameruleDefaultEffect
/gamerule keepInventory truefalsePlayers keep inventory on death
/gamerule doDaylightCycle falsetrueStops day/night cycle
/gamerule doWeatherCycle falsetrueStops weather changes
/gamerule mobGriefing falsetrueMobs can't break blocks (Creepers, Endermen, etc.)
/gamerule doFireTick falsetrueFire doesn't spread
/gamerule pvp falsetrueDisables player vs player combat
/gamerule spawnRadius 010New players spawn exactly at world spawn
/gamerule naturalRegeneration falsetruePlayers don't regenerate health naturally
/gamerule announceAdvancements falsetrueHides advancement announcements in chat

Teleport & location

Vanilla
CommandWhat it does
/tp [player] [x y z]Teleports a player to coordinates
/tp [player1] [player2]Teleports player1 to player2's location
/teleport [target] [destination]Full form of /tp; same syntax
/spawnTeleports you to world spawn (EssentialsX)
/setspawnSets world spawn to your current location (EssentialsX)
/home [name]Teleports you to your set home (EssentialsX)
/sethome [name]Sets a home at your current location (EssentialsX)
/warp [name]Teleports you to a named warp point (EssentialsX)
/setwarp [name]Creates a warp at your current location (EssentialsX)
/backReturns you to your previous location (EssentialsX)
/tpa [player]Requests to teleport to a player (EssentialsX)
/tpahere [player]Requests a player teleport to you (EssentialsX)

Items & inventory

Vanilla
CommandWhat it does
/give [player] [item] [amount]Gives a player an item. E.g. /give Steve diamond 64
/clear [player] [item]Clears a player's inventory, or removes a specific item
/enchant [player] [enchant] [level]Applies an enchantment to the item in a player's hand
/item [item]Gives yourself the item in hand with modifications (EssentialsX)
/heal [player]Restores a player to full health and hunger (EssentialsX)
/feed [player]Fills a player's hunger bar (EssentialsX)
/xp add [player] [amount]Gives a player XP points (or levels with 10L)
/effect give [player] [effect] [duration] [level]Applies a status effect. E.g. speed, night_vision, regeneration
/effect clear [player]Removes all status effects from a player

Server management

Vanilla + Console
CommandWhat it does
/stopSafely stops the server (saves world data first)
/restartRestarts the server (requires restart script or panel)
/reload confirmReloads plugins without restarting (use sparingly — can cause issues)
/save-allForces the server to save all world data immediately
/save-offPauses automatic world saving (useful before manual backups)
/save-onRe-enables automatic world saving
/tpsDisplays current server TPS (Paper/Spigot). 20 TPS = no lag.
/timings reportGenerates a performance report link (Paper)
/memoryDisplays current server memory usage (EssentialsX)
/pluginsLists all currently loaded plugins and their status
/versionDisplays server version, Minecraft version, and API version

EssentialsX commands (most useful)

EssentialsX plugin required
CommandWhat it does
/fly [player]Toggles flight mode for yourself or another player
/speed [type] [value] [player]Sets walk or fly speed (0–10). E.g. /speed fly 3
/god [player]Toggles godmode (invincibility) for a player
/vanish [player]Makes a player invisible to others (great for admin oversight)
/nick [player] [nickname]Sets a display nickname for a player
/mute [player] [duration]Prevents a player from chatting. E.g. /mute Steve 1h
/unmute [player]Removes a mute
/tempban [player] [duration] [reason]Temporarily bans a player. E.g. /tempban Steve 3d Griefing
/socialspyToggles visibility of all private messages (admin tool)
/broadcast [message]Sends a server-wide announcement in bold
/motdDisplays the server's message of the day
/rulesDisplays the server rules to the player
/seen [player]Shows when a player last logged in
/kit [name] [player]Gives a player a configured starter kit
/createkit [name] [cooldown]Creates a kit from your current inventory
/invsee [player]Opens a player's inventory so you can inspect or modify it
/repair [hand/all]Fully repairs the item in your hand, or all items
/hatPuts the item in your hand on your head slot

LuckPerms commands

LuckPerms plugin required
CommandWhat it does
/lp user [player] group set [group]Assigns a player to a permissions group (e.g. admin, vip)
/lp user [player] group add [group]Adds an additional group to a player (inheritance)
/lp user [player] group remove [group]Removes a group from a player
/lp user [player] infoShows a player's current groups and permissions
/lp group [group] permission set [node] trueGrants a permission to a group. E.g. essentials.fly
/lp group [group] permission set [node] falseExplicitly denies a permission for a group
/lp group [group] infoShows all permissions and parent groups for a group
/lp creategroup [name]Creates a new permission group
/lp deletegroup [name]Deletes a permission group
/lp group [group] parent set [parent]Sets a parent group (inheritance). E.g. mod inherits from member
/lp editorOpens the web-based permission editor — easiest way to manage everything
LuckPerms tip: Run /lp editor and open the link in your browser. The web editor is far easier than typing individual commands — you can drag and drop permissions, create groups, and manage everything visually.

Frequently asked questions

Do I need to be OP to use these commands?
Vanilla commands require OP status. EssentialsX and LuckPerms commands can be granted to specific players or groups through LuckPerms permissions — you don't have to give full OP to give a player specific commands like /fly or /heal.
Why isn't /tps working on my server?
/tps is a Paper and Spigot command — it doesn't exist on Vanilla servers. If you're running Vanilla, switch to Paper (it's a drop-in replacement with all the same gameplay) to access /tps and many other admin improvements.
Can I run commands automatically on a schedule?
Yes. In EssentialsX, you can use the /commandtimer feature. For more advanced scheduling, install AutomaticTimedCommands or a similar plugin to run any command on a set interval — useful for announcements, auto-saves, or periodic resets.
What's the difference between /reload and restarting?
/reload reloads plugin configurations without fully restarting the server. It's faster but can cause memory issues or partial reloads with complex plugins. A full restart is safer and recommended after major config changes or plugin updates.

Need a server to run these commands on? FreeGameHost is free forever — no credit card.

Create Free Server →

Related: How to OP yourself  •  How to whitelist your server  •  Best plugins for your server