Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 1.75 KB

File metadata and controls

77 lines (57 loc) · 1.75 KB

Commands

Representing the [commands] section in server.toml.

Spawn Command

The /spawn command teleports the player to the server's spawn location. You can customize the command alias or disable it entirely.

:::code-group

[commands]
spawn = "spawn"

:::

Fly Command

The /fly command allows players to toggle flight on and off. This command is not affected by the Allow Flight setting.

:::code-group

[commands]
fly = "fly"

:::

Fly Speed Command

The /flyspeed command allows players to adjust their flight speed with a speed float argument. The speed value must be between 0.0 and 1.0.

:::code-group

[commands]
fly_speed = "flyspeed"

:::

Transfer Command

The /transfer command allows players to transfer to another server by specifying its hostname and optionally a port. If a port is not specified the Minecraft default of 25565 is used.

Note that the destination server must have accepts-transfers set to true in its server.properties.

:::code-group

[commands]
transfer = "transfer"

:::

Disabling Commands

Any command can be disabled by setting its value to an empty string "". This prevents players from using that command entirely.

:::code-group

[commands]
spawn = ""
fly = "fly"
fly_speed = ""
transfer = ""

:::

Renaming Commands

You can rename any command to a custom alias by changing its value. For example, you could rename multiple commands for your server's theme or language preferences.

:::code-group

[commands]
spawn = "home"
fly = "soar"
fly_speed = "speed"
transfer = "server"

:::