Actions

Minecraft Server Commands

From CreeperHost Wiki

If you're new to having your own Minecraft server, one of the first things you're going to want to learn your way around are the server commands; how to give yourself operator status, how to enable the whitelist and add people to it, how to ban, and so on.

There are two ways to execute commands on the server;

  • From the console on your Control Panel, by typing the command in without the / on the front;

or

  • From in-game, typing the command with the / on the front.

Giving yourself operator status must be done from the console - once you've opped yourself, you can op and de-op other players from inside the game.


OPERATOR STATUS

  • /op <playername> - gives the player operator status
  • /deop <playername> - removes operator status


There are four levels of Operator;

  1. - Ops can bypass spawn protection.
  2. - Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and /tp, and can edit command blocks.
  3. - Ops can use /ban, /deop, /kick, and /op.
  4. - Ops can use /stop.


You can manage the default op level that a newly opped player is assigned from the Server Properties page on your Control Panel > Minecraft.


WHITELIST

A whitelist is a filtering method that enables you to allow access only to specific people. When the whitelist is enabled, only playernames that are on the whitelist will be able to access your server.

/whitelist - manages the server whitelist

  • /whitelist add <player> - adds a user to the whitelist
  • /whitelist list - lists everyone on the whitelist
  • /whitelist off - disables the whitelist
  • /whitelist on - enables the whitelist
  • /whitelist reload - reloads the whitelist (sometimes necessary after adding new names)
  • /whitelist remove <player> - removes a player from the whitelist

For more information on formatting the whitelist file, see the whitelist page.


BANLIST

A banlist is a list that specifically blocks access to your server to any name on the list. Even if a user is on the whitelist, if they're also on the ban list, they will be banned from your server.

  • /ban <player> - adds a player to the banlist
  • /ban-ip <ip address> - adds that IP to the banlist
  • /banlist ips - lists all banned IPs
  • /banlist players - lists all banned players
  • /pardon <player> - removes that player's name from the banlist
  • /pardon-ip <ip address> - removes that IP from the banlist


You can find the full list of Minecraft server commands on the Minecraft Gamepedia wiki - http://minecraft.gamepedia.com/Commands