OGTOOLS

🛡️ Minecraft server commands

It is your server: Every permission, ban, whitelist and backup command, along with the permission level each one needs.

Minecraft 26.3  18 commands · Java Edition

If you run a server for friends, three commands from this group are enough: Granting permissions, kicking and the whitelist. While the whitelist is on, only the people you added to the list can join; it is the easiest way to stop unwanted logins.

Banning and kicking get mixed up: Kicking only cuts the connection, and the player can rejoin right away. A ban is permanent and is only lifted with the pardon command. IP bans are a separate list and should be used carefully, because they can also affect innocent players on the same network.

The right order for a backup is this: First turn off autosave, then write everything to disk, copy the files and finally turn saving back on. If you forget to turn saving back on and the server crashes, all progress from that period is lost.

Server management: Full list

/ban Bans a player from the server Kicks a player and blacklists them so they cannot join again. /ban-ip Bans an IP address Bans the address a player connects from; it also stops them joining with a new account. /banlist Lists banned players Shows banned players or banned addresses. /deop Takes away operator permissions Removes a player's operator status. /kick Kicks a player from the server Cuts a player's connection without banning them; they can join again. /op Gives a player operator permissions Makes a player an operator: They can now use commands. /pardon Lifts a player's ban Allows a banned player to join again. /pardon-ip Lifts an IP ban Removes an address banned with ban-ip from the blacklist. /publish Opens a singleplayer world to LAN Opens the world you are playing to friends over LAN and tells you the port. /save-all Saves the world to disk Instantly writes all of the server's in-memory changes to file. /save-off Stops autosave Temporarily turns off saving so the files do not change while you take a backup. /save-on Turns autosave back on Restarts the autosave that was stopped with save-off. /setidletimeout Sets the idle timeout Sets after how many minutes of inactivity a player is kicked. /stop Shuts down the server safely Saves the world and stops the server properly. /transfer Transfers a player to another server Connects a player's game to another server without making them log out. /unpublish Closes LAN sharing Closes the world you opened to LAN again; connected players are disconnected. /version Shows the game version Prints the Minecraft version the server or world runs on, with its data and resource pack versions. /whitelist Manages the whitelist Lets only the players on the list join the server.

What do these commands need?

CommandPermission neededCheats
/ban Server admin (level 3) Must be on
/ban-ip Server admin (level 3) Must be on
/banlist Server admin (level 3) Must be on
/deop Server admin (level 3) Must be on
/kick Server admin (level 3) Must be on
/op Server admin (level 3) Must be on
/pardon Server admin (level 3) Must be on
/pardon-ip Server admin (level 3) Must be on
/publish Server owner (level 4) Must be on
/save-all Server owner (level 4) Must be on
/save-off Server owner (level 4) Must be on
/save-on Server owner (level 4) Must be on
/setidletimeout Server admin (level 3) Must be on
/stop Server owner (level 4) Must be on
/transfer Server admin (level 3) Must be on
/unpublish Server owner (level 4) Must be on
/version Operator (level 2) Not needed
/whitelist Server admin (level 3) Must be on

Common questions

How do I give my friend operator permissions?

Just type /op playername. The permission level is set by the op-permission-level value in the server settings, and its default is the highest level.

How do I shut down the server safely?

Use the /stop command. It saves the world and shuts down properly; force-killing the process can lead to data loss.

Other command categories

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.