Minecraft
Essential Minecraft admin commands for server owners
Run these in the server console or in game as an operator. In the console, leave out the leading slash.
Players and permissions
- /op name: make a player an operator
- /deop name: remove operator
- /whitelist on, /whitelist add name, /whitelist remove name
- /kick name, /ban name, /pardon name
World and rules
- /gamemode survival name (or creative, adventure, spectator)
- /difficulty easy (or peaceful, normal, hard)
- /time set day
- /weather clear
- /gamerule keepInventory true
Moving around
- /tp name1 name2: teleport one player to another
- /tp name x y z: teleport to coordinates
- /setworldspawn: set the world spawn where you are
Server care
- /save-all: save the world now
- /stop: save and shut down safely
Tip: always stop the server with /stop or the panel's Stop button instead of killing it. It prevents world corruption.