Minecraft server commands every owner should know
These are the commands server owners reach for most. In the console you type them without the slash; in the game you start with /. You need to be an operator to use them in the game.
People
| Command | What it does |
|---|---|
op Name / deop Name |
Give or take operator rights |
whitelist add Name |
Let a player in when the whitelist is on |
whitelist on / off |
Turn the whitelist on or off |
kick Name reason |
Remove a player for now |
ban Name reason / pardon Name |
Ban or unban by name, see banning and unbanning |
ban-ip 1.2.3.4 |
Ban an address, see IP bans |
list |
Who is online |
The world
| Command | What it does |
|---|---|
time set day / night / 6000 |
Set the time (ticks explained) |
weather clear |
Stop rain and storms |
difficulty peaceful |
Change the difficulty |
gamerule keepInventory true |
Keep items on death, see gamerules |
setworldspawn |
Make your position the world spawn |
worldborder set 5000 |
Limit the world to 5000 blocks wide |
Moving and giving
| Command | What it does |
|---|---|
gamemode creative Name |
Change someone's game mode |
tp Name 100 70 -200 |
Teleport to coordinates (Nether converter) |
tp Name OtherName |
Teleport to a player |
give Name diamond 16 |
Give items |
effect give Name speed 60 1 |
Give a potion effect |
The server
| Command | What it does |
|---|---|
save-all |
Write the world to disk now |
say message |
Message everyone |
stop |
Save and shut down |
reload |
Reload plugins and config; a restart is safer |
Target selectors
@a all players, @p nearest player, @r a random player, @s yourself, @e every entity. @e[type=zombie,distance=..10] means every zombie within 10 blocks.
Commands that come from plugins
Plugins add their own: /lp for LuckPerms (setup), /spark for profiling (guide), /tpa and /home from EssentialsX. Type /help to see what your server has.
On Saryno you can run any of these from the Console tab, and the dashboard gives you buttons for the common ones.