Minecraft Server Commands
Complete list of server commands for operators and admins. Copy and paste ready.
Player Management Commands
Give Operator (Admin)
/op usernameMakes a player an operator with full permissions
Remove Operator
/deop usernameRemoves operator status from a player
Kick Player
/kick username [reason]Kicks a player from the server (they can rejoin)
Ban Player
/ban username [reason]Permanently bans a player
Unban Player
/pardon usernameRemoves a ban from a player
Whitelist Commands
/whitelist on/whitelist add username/whitelist remove username/whitelist listControl who can join your server
Gameplay Commands
Change Gamemode
/gamemode survival username/gamemode creative username/gamemode spectator username/gamemode adventure usernameGive Items
/give username item_id [amount]Example: /give Steve diamond 64
Teleport
/tp player1 player2/tp player x y zTeleport players to each other or coordinates
Time & Weather
/time set day/time set night/weather clear/weather rainWorld Commands
Set Spawn Point
/setworldspawn [x y z]Sets the world's default spawn location
Set World Border
/worldborder set 10000/worldborder center x zLimits world size (reduces lag and storage)
Difficulty
/difficulty peaceful/difficulty easy/difficulty normal/difficulty hardServer Commands
List Online Players
/listShows all connected players
Save World
/save-allForces a world save (automatic saves happen too)
Reload Server
/reload confirmReloads datapacks and some configs (not recommended - restart instead)
Stop Server
/stopSafely shuts down the server
Broadcast Message
/say messageSends a server message to all players
Need a Server to Practice On?
Get your own Minecraft server with full console access. Run any command you want.
Get Your Server — $4.99$3.99/mo