Skip to content

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.

toml
[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.

toml
[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.

toml
[commands]
fly_speed = "flyspeed"

Disabling Commands

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

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

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.

toml
[commands]
spawn = "home"
fly = "soar"
fly_speed = "speed"

Released under the MIT License.