Minecraft server commands ensure that par­ti­cipants adhere to your server’s rules. They can also adjust the game for the benefit of other par­ti­cipants. You’ll find the most important Minecraft commands in our list.

What are Minecraft server commands?

Nothing should get in the way of playing together after setting up a Minecraft server. Friends and gamers from all over the world can join to enjoy the sandbox game. However, it is important to manage your Minecraft server so the fun doesn’t get cut short. In addition to the basic steps in our linked guide, Minecraft server commands are a useful tool for managing the server.

The commands are used to optimise and manage the en­vir­on­ment. This is referring to the server’s spe­cific­a­tions and the players par­ti­cip­at­ing in a game. While some commands can be executed by all users, Minecraft op commands are reserved for operators. Operators can either be the owners of the server, or players who have been spe­cific­ally selected to oversee the server and the game. Therefore, these exclusive rights should only be given to trusted persons. The exact rights that operators should have are outlined in the server.prop­er­ties file.

How to enter Minecraft server commands

There are several ways to enter the commands. One option is the chat window, which you open with the [T] key. The Minecraft op commands must be marked with a ho­ri­zont­al bar to dis­tin­guish them from regular chats. This does not need to be done in the server console.

The most important Minecraft commands for man­age­ment

These are the main Minecraft server commands needed for man­age­ment:

  • /ban (name): This command per­man­ently bans a user from your server.
  • /ban-ip (IP address): This command per­man­ently bans a specific IP address from your server.
  • /banlist: This command shows a list of all blocked users or IP addresses.
  • /deop (name): This command removes all operator rights from a player.
  • /kick (name) (reason): This im­me­di­ately removes a player from the server. Put the name of the person after this command. You can also specify the reason you are removing them.
  • /list: This shows all active users on your server.
  • /op (name): This command gives another person operator rights.
  • /pardon (name): This will unblock a person.
  • /pardon-ip (IP address): This will unblock a specific IP address.
  • /save-all: This command saves the current world directly to your server.
  • /save-off: This disables auto­mat­ic­ally saving the world to your server.
  • /save-on: This enables auto­mat­ic­ally saving the world to your server.
  • /setid­le­timeout (time): This command defines how long a player is allowed to stay on the server without moving.
  • /stop: This command saves the world and shuts down the server.
  • /whitelist: This command manages the guest list. You can change the guest list with [add] or [remove]. [list] shows all players on the whitelist and [reload] reloads the list if you have changed it outside the game.

Game world commands

These are the most important Minecraft server commands if you want to make changes to the game world:

  • /clone: This moves a block area to another position in the game world.
  • /data: This command modifies a specific block type’s block object data in the game world.
  • /de­fault­gamemode: This command changes the world’s game mode. The choices are adventure, creative, spectator and survival.
  • /dif­fi­culty: This changes the game world’s dif­fi­culty. The options are peaceful, easy, normal, and hard.
  • /gamerule: This command can turn several rules on or off within the game world.
  • /publish: This command makes your game world available within a LAN.
  • /time: This command changes the time in your game world. Useful para­met­ers are 0 (sunrise), 1000 (morning), 6000 (noon), 12000 (sunset) and 18000 (night).
  • /weather: This command changes the weather. The options are clear, rain or thunder. It is also possible to specify the duration of certain weather con­di­tions.
  • /world­bor­der: This changes the borders of your game world.

How to customise items and creatures

These Minecraft server commands are useful if you want to change or customise objects or creatures:

  • /ad­vance­ment: This command gives an ad­vance­ment to a player.
  • /attribute: This changes a being’s attribute.
  • /clear (target) (item): This command removes all or specific items from the specified target’s inventory. Leave out the (item) parameter to remove all items.
  • /damage: This command inflicts damage on creatures.
  • /data: This changes a being’s prop­er­ties.
  • /ex­per­i­ence: This command gives or takes away ex­per­i­ence points from a player.
  • gamemode: This changes a par­ti­cipant’s game mode.
  • /give (target) (item) (number): This command gives a specific item to a player.
  • /item: This command replaces, modifies, or copies items in a creature’s inventory.
  • /kill: This command kills a creature directly.
  • /spawn­point: This command specifies where a player spawns.
  • /spectate: This command allows you to observe any creature in spectator mode.

Commands for data packets and protocol functions

The following Minecraft server commands are helpful for your data packets and logs:

  • /datapack: This command manages data packages.
  • /debug: This command starts or stops a debug log.
  • /help: This lists the commands.
  • /locate: This command displays the co­ordin­ates of the nearest structure, biome, or work­sta­tion.
  • /reload: This reloads data packets.
  • /score­board: This command manages self-defined scores.
  • /seed: This command specifies your game world’s starting value.

How to apply Minecraft OP and Deop commands?

We have already briefly in­tro­duced the Minecraft op command. This command makes another person the operator. The selected player does not have to be online. This allows them to use all Minecraft server commands. Type the following command to give another person these operator rights:

/op player name

Use this command to remove the rights from the person:

/deop player name
Tip

You can discover even more tips about the best-selling video game of all time in our Digital Guide. You can learn how to install mods on your Minecraft server, how to set up a Minecraft server on Linux, as well as everything you need to know about Minecraft seeds.

Author

Go to Main Menu