Representing the [commands] section in server.toml.
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":::
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":::
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":::
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":::
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 = "":::
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":::