Minecraft server console commands
The Minecraft server commands you'll use most: whitelist, op, kick, ban, gamemode, time, weather, tp and more.
Type these in the Console without a leading slash. In-game, operators use the same commands with a slash.
| Command | What it does |
|---|---|
list | Who's online. |
say hello | Broadcast a message as [Server]. |
whitelist add name | Let a player in when the whitelist is on. Also remove, on, off, list. |
op name / deop name | Give or take operator rights (commands in-game). |
kick name / ban name / pardon name | Remove a player, ban them, or lift a ban. |
gamemode creative name | Change one player's mode: survival, creative, adventure, spectator. |
difficulty hard | peaceful, easy, normal or hard. |
time set day / weather clear | Fix the time or the weather. |
tp name x y z | Teleport a player. tp a b sends a to b. |
give name diamond 5 | Give items. |
gamerule keepInventory true | Change a world rule. Also doDaylightCycle, mobGriefing, pvp, and the rest. |
save-all | Write the world to disk now. The server autosaves every few minutes anyway. |
tps | Tick rate over 1, 5 and 15 minutes. |
stop | Save and shut down cleanly. The Stop button does the same. |
Console or in-game?
The console runs everything as the server itself, so it works even before anyone is an operator. Use it to op yourself the first time: op YourName. After that, ops can type the same commands in chat with a slash. Plugins add their own commands; their pages list them.

