Admin and Server Commands

Useful Commands to Use as Admin of Everyday

If you have ever played in a Minecraft multiplayer server before, you may be familiar with commands such as ”/warp” or ”/spawn” and things like that. As an admin, you can do lots of things. The Vanilla servers don’t offer many commands, but Bukkit supports all sorts of them in the form of plugins. Since this guide is based on the Vanilla server software, I will stick to some of the commands used in it. If you are in the game while initiating a command, you have to use a forward-slash ”/” before typing it in. This tells the client that the text following it will be a command and not a chat message. However, if you are using commands from the server software, the console will only accept  commands without the slash ”/”, so you would just type it as is.

Changing the gamemode of a player:

/gamemode <0/1> <player> In the player spot, you will put the name of the person of whom you want to change the gamemode of, this could be yourself or another player on the server. In the next part, you will either put ”0” which is Survival or ”1” which is Creative. The brackets are not used. For example, a sample command would say: /gamemode 1 PrinceTom which will change my game type to Creative mode.

Teleporting a player to another player:

/tp <player> <target>

The player spot is the person you want to teleport and the target is the person whom you want them to teleport to. Again, this could be yourself. A sample command would look like: /tp PrinceTom Sebatian_Legel which will teleport me to the person named Sebatian_Legel.

Giving items to yourself or another player:

/give <player> <block ID> <amount>

In the player spot you will add the username of the player you want to give items to. This can either be yourself or other players. When using this command you cannot use the name of block, you must the ID of the block. In the last part of this command you must enter the amount of the item you want to give, bear in mind the maximum number of items in one ‘stack’ is 64 so your items may appear in more than one stack. When using this command the items will not be delivered into your inventory but will instead be dropped at your feet, as if you had dropped them. Because of this, be careful to stand on an edge or by Lava as your items may be lost. An example of this command would be: /give PrinceTom 1 64 This would give me one stack of 64 Stone which would appear on the ground infront of my character.

Here are all of the server commands that you can use on your server. Enjoy

ban <playername> [reason] Blacklists the name playername from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place. Always succeeds.
ban-ip <ip-address | playername> Blacklists an IP address so that all subsequent connecti.ons from it are rejected. ip-address must be valid orplayername must be online.
banlist [ips] Displays the banlist. To display banned IP addresses, use the command ”banlist ips” Always succeeds.
deop <playername> Revokes a player’s operator status. Always succeeds.
kick <playername> [reason] Forcibly disconnects playername from the server, displaying an optionalreason to them. Playername must be online.
list Shows the names of all currently-connected players (the same can be achieved when pressing tab) Always succeeds, even in a command block.
op <playername> Grants playername operator status on the server. Always succeeds.
pardon <playername> Removes playername from the blacklist, allowing them to connect again. Always succeeds.
pardon > Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server. ip-address must be valid.
save-all Forces the server to write all pending changes to the world to disk. Always succeeds.
save-off Disables the server writing to the world files. All changes will temporarily be queued. Always succeeds.
save-on Enables the server writing to the world files. This is the default behavior. Always succeeds.
stop Gracefully shuts down the server. Always succeeds.
whitelist <add | remove> <playername> Adds or removes playername from the whitelist. Always succeeds.
whitelist list Displays all players in the whitelist. Always succeeds.
whitelist <on | off> Enables/disables the server’s use of a whitelist. Note: Server ops will alwaysbe able to connect when the whitelist is active, even if their names do not appear in the whitelist. Always succeeds.
whitelist reload Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft). Always succeeds.