Minecraft Server Commands
Complete list of server commands for operators and admins. Copy and paste ready.
Player Management Commands
Give Operator (Admin)
/op username
Makes a player an operator with full permissions
Remove Operator
/deop username
Removes 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 username
Removes a ban from a player
Whitelist Commands
/whitelist on
/whitelist add username
/whitelist remove username
/whitelist list
Control who can join your server
Gameplay Commands
Change Gamemode
/gamemode survival username
/gamemode creative username
/gamemode spectator username
/gamemode adventure username
Give Items
/give username item_id [amount]
Example: /give Steve diamond 64
Teleport
/tp player1 player2
/tp player x y z
Teleport players to each other or coordinates
Time & Weather
/time set day
/time set night
/weather clear
/weather rain
World Commands
Set Spawn Point
/setworldspawn [x y z]
Sets the world's default spawn location
Set World Border
/worldborder set 10000
/worldborder center x z
Limits world size (reduces lag and storage)
Difficulty
/difficulty peaceful
/difficulty easy
/difficulty normal
/difficulty hard
Server Commands
List Online Players
/list
Shows all connected players
Save World
/save-all
Forces a world save (automatic saves happen too)
Reload Server
/reload confirm
Reloads datapacks and some configs (not recommended - restart instead)
Stop Server
/stop
Safely shuts down the server
Broadcast Message
/say message
Sends 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/mo