Hi there, guest! If you have an account, then please sign in or register in order to see more.
Minecraft Server Commands — Full List (Java, 2026)
9 min read
Updated 7 October 2026
ESAGAMES Team
Minecraft server commands let you manage players, change the world and run admin tasks from the console or in-game. Here's the full list that matters for a Java server, grouped by what you're doing — with the exact syntax. Most need operator (op) permission.
Quick answer
Run Minecraft server commands from the console without the slash, or in-game with the slash once you are an operator (op YourName in the console). The ones you use most are /op, /gamemode, /tp, /give, /whitelist, /kick, /ban, /time set and /weather.
Console vs in-game
From the server console, type commands without the leading slash. In-game, you need operator status (/op yourname from the console) and you type them with the slash. Most admin commands require op.
Players & admin
Command
What it does
/op <player>
Grant operator (admin) status.
/deop <player>
Remove operator status.
/kick <player> [reason]
Kick a player from the server.
/ban <player> [reason]
Ban a player by name.
/ban-ip <player|ip>
Ban by IP address.
/pardon <player>
Unban a player.
/whitelist add|remove <player>
Manage the whitelist (with /whitelist on to enforce it).
/effect give <player> <effect> [seconds] [amplifier]
Apply a status effect.
/enchant <player> <enchant> [level]
Enchant the held item.
/experience add <player> <amount> [points|levels]
Give XP.
/kill [target]
Kill an entity or player.
Server management & messaging
Command
What it does
/save-all
Force-save the world now.
/save-off / /save-on
Disable / enable auto-save (for backups).
/stop
Cleanly stop the server (console).
/say <message>
Broadcast a message to everyone.
/tell <player> <message>
Send a private message.
/title <player> title <json>
Show a large on-screen title.
The /execute command
/execute is the most powerful command in Minecraft — it runs another command as, at, or conditional on something else. It's how command blocks and datapacks do advanced logic. Worth learning once you're comfortable with the basics above.
Minecraft is a trademark of Mojang Synergies AB / Microsoft. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Mojang or Microsoft.
Frequently asked questions
How do I run commands on a Minecraft server?
From the server console, type them without the leading slash. In-game, you need operator status (run /op yourname from the console first) and you type them with the slash. Most admin commands require op.
How do I make myself admin on a Minecraft server?
Run /op yourname from the server console. That grants operator status, letting you run admin commands like /gamemode, /give and /kick in-game. Use /deop to remove it.
How do I keep my items when I die in Minecraft?
Run /gamerule keepInventory true. Players keep their items and XP on death from then on. Set it to false to return to normal.
How do I change the time or weather on a Minecraft server?
/time set day (or night/noon/midnight or a number) sets the time; /weather clear (or rain/thunder) sets the weather. Add /gamerule doDaylightCycle false or doWeatherCycle false to freeze them.
How do I give someone items or op in-game?
With op status, use /give <player> <item> [count] for items and /op <player> to make someone an operator. Both need you to be an operator (or run them from the console) first.
Do Minecraft server commands work the same on Bedrock?
Most core commands are similar, but some gamerule names and syntax differ between Java and Bedrock (for example keepInventory casing). This list is for Java 1.21; check Bedrock docs for its exact spellings.
How do I teleport to coordinates in Minecraft?
Use /tp <x> <y> <z> (or /teleport) to move to exact coordinates, or /tp <player> <target> to send one player to another. You can use ~ for relative coordinates — e.g. /tp ~ ~10 ~ moves you 10 blocks up.
How do I stop time or weather from changing on my server?
Freeze time with /gamerule doDaylightCycle false (then set it with /time set day), and freeze weather with /gamerule doWeatherCycle false (then /weather clear). Both are handy for builds and events.
How do I ban and unban players by name in Minecraft?
/ban <player> [reason] bans by name, /ban-ip <player|ip> bans by IP, and /pardon <player> (or /pardon-ip) unbans. /banlist shows current bans. Run these from the console or as an operator in-game.
What is the most powerful Minecraft command?
/execute — it runs another command as, at, or conditional on an entity, position or state. It powers command blocks and datapacks for advanced logic, and is worth learning once you're comfortable with the basic commands.
Go deeper on this
Guides and explainers that pair with this fix — from our guides and blog.
We use essential cookies to keep checkout, login sessions and security flows working. Optional cookies help us understand performance, remember interface choices and enable external support widgets only when you allow them.