Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Admin/OP Commands in Minecraft

#1
Admin/OP Commands in Minecraft

Managing your Minecraft server can become laborious and complex. Especially since there are a large number of commands. We'll explain all the Minecraft commands you need.

Execute a command

In order for you to use admin commands on your Minecraft server, you must make yourself an operator.
  • Enter in the chat console
    • Open chat by pressing the 'T' key
  • Input in the server console

All commands start with a slash
Code:
/

It can happen that the slash is omitted in the server console. Check with your hoster or just try it out. You can use the command

Code:
/list

because it only shows you the current players on your server.

Different parameters


You should also pay attention to the different parameters of commands. Pointed or square brackets are not written when entering a command.
  • Parameters without pointed meta brackets are unchangeable words that must be entered exactly like this
  • <parameter> with pointed meta brackets are placeholders for a value, e.g. for a player name
  • Parameters] with square meta brackets are optional, i.e. you can enter them additionally

Example
  • Ban player:
    Code:
    /ban Sheep25
  • Change world time:
    Code:
    /time set day
    or
    Code:
    /time set 0

[Image: minecraft-admin-commands.png]

All commands

Utilities

Code:
/datapack <enable|disable|list>
Manages data packets.

/debug <start|stop|function>
Starts or stops writing a debug log.

/function <function>
Executes a list of commands or a function alias located in an mcfunction file.

/help [command]
Lists one or more commands with their syntax.

/locate <structure>
Displays the coordinates of the nearest structure (fortress, mansion, etc.).

/locatebiome <biome>
Displays the coordinates of the nearest biome (minecraft:soul_sand_valley, etc.).

/perf <start|stop>
Starts (for 10 seconds) or stops writing a debug log.

/reload
Reloads data packets.

/scoreboard
Manages self-defined scoreboards.

/seed
Names the seed of the world.


Chat

Code:
/me <message>
Sends the name of the sender together with an action text in the chat.

/msg <player> <message>
Sends a message to a player (called whisper) in chat.

/tell <player> <message>
Identical to /msg.

/say <message>
Sends a message in chat to all players.

/teammsg <message>
Sends a message in chat to all players of the same team.

/tm <message>
short form of /teammsg

/tellraw <player> <message>
Sends a message in chat to one player, which can be formatted and mouse-sensitive.

/w
Identical to /msg (engl. whisper).


Change of creature (player or creature)

Code:
/advancement <action> <player> <mode> <advancement> [criterion]
Gives the player an advancement.

/attribute
Changes an attribute of the creature.

/bossbar
Shows the player a boss bar.

/clear [player] [item] [amount]
Removes items from the player's inventory.

/data
Changes the properties of a creature.

/effect
Gives the creature a status effect.

/enchant <player> <enchantment> <level>
Gives an enchantment to the item the player is holding.

/execute
Gets a creature /item to execute a command and /or check conditions.

/experience
Gives or takes experience points from the player.

/xp
Gives or takes experience points from the player.

/gamemode <mode> <player>
Changes the game mode (0/1/2/3) of the player.

/give <player> <Item> [Amount]
Gives items to the player's inventory.

/item (from 1.17)
Replaces, modifies or copies items in the creature's inventory.

/kill [player/creature]
Kills the creature immediately.

/loot <target> <source>
generates loot tables for creatures/blocks

/particle
Makes particles appear around a creature/item

/playsound
Plays a sound for the player.

/recipe <action> <player> <recipe>
Gives or takes crafting recipes from the player.

/spawnpoint <player> <position>
Changes the player's spawn point.

/spectate <creature> [player]
Can watch any creature in spectator mode.

/spreadplayers
Distributes creatures within a given area in the landscape.

/stopsound
Stops playing all or one sounds for the player.

/tag
Gives or removes a tag to the creature.
/team
Manages teams for objects (creature or inanimate object) and /or of variables.

/teleport <target> <direction of view>
Teleports the creature to the target and /or turns it.

/tp <target> <direction of view>
Teleports the creature to the target and /or rotates it.

/title <player> <command>
Displays a title screen to the player.

/trigger
Changes the player's score.


Change the world

Code:
/clone
Copies/moves an entire block area to another position.

/data
Changes the block object data of a block in the world.

/defaultgamemode <mode>
Changes the default game mode of the world.

/difficulty <peaceful|easy|normal|hard>
Changes the difficulty of the world.

/fill
Fills an entire block area with a specific block.

/forceload
Loads certain chunks permanently.

/gamerule <rule> <value>
Changes a basic setting of the world.

/particle
Makes particles appear at a specific position in the world

/publish <port>
Makes the world available for shared play on a LAN (local area network).

/setblock
Places or deletes a block at a specified position in the world

/setworldspawn [Position]
Changes the spawn area of the world.

/summon
Creates an object (creature etc.)

/tickingarea
Bedrock-exclusive: permanently loads certain chunks.

/time <add|set|query> <0-18000 or day|night|noon|midnight>

/toggledownfall
Bedrock-exclusive: Changes precipitation.

/weather <clear|rain|thunder> [duration in seconds]
Changes the weather in the world.

/worldborder
Changes the size of the world barrier around the world.



Server management

Code:
/ban <player> [reason]
Blocks a player permanently from the server.

/ban-ip <IP Address> [reason]
Blocks an IP address permanently from the server.

/banlist [ips|players]
Displays all banned players or IP addresses of the server.

/deop <player>
Removes operator privileges from a player for this server.

/kick <player> [reason]
Removes an active player from the server immediately.

/list [uuids]
Lists all active players on the server.

/op <player>
Gives operator rights for this server to a player.

/pardon <player>
Unlocks a player from the server.

/pardon-ip <IP address>
Unlocks an IP address from the server.

/save-all
Saves the world immediately to the server.

/save-off
Switches off automatic saving of the world to the server.

/save-on
Save the world to the server automatically.

/setidletimeout <minutes>
Sets a limit on how long players can stand around motionless on the server.

/stop
Stops the server immediately and shuts it down.

/whitelist <add|remove|list|on|off|reload> [Players]
Manage the whitelist for the server.

Enable command suggestions
Command suggestions can be turned on in the chat settings. This will display the list of available commands when typing a slash ( / )
[Image: RvghcKs.png]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016