Guide

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.

CommandWhat it does
listWho's online.
say helloBroadcast a message as [Server].
whitelist add nameLet a player in when the whitelist is on. Also remove, on, off, list.
op name / deop nameGive or take operator rights (commands in-game).
kick name / ban name / pardon nameRemove a player, ban them, or lift a ban.
gamemode creative nameChange one player's mode: survival, creative, adventure, spectator.
difficulty hardpeaceful, easy, normal or hard.
time set day / weather clearFix the time or the weather.
tp name x y zTeleport a player. tp a b sends a to b.
give name diamond 5Give items.
gamerule keepInventory trueChange a world rule. Also doDaylightCycle, mobGriefing, pvp, and the rest.
save-allWrite the world to disk now. The server autosaves every few minutes anyway.
tpsTick rate over 1, 5 and 15 minutes.
stopSave 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.