Module veloren_server::cmd
source · Expand description
Implementing new commands.
To implement a new command provide a handler function in do_command.
Enums
- KitEntry 🔒
Traits
Functions
- area 🔒
- TODO: Add autocompletion if possible (might require modifying enum to handle dynamic values).
- no_sudo 🔒
- position 🔒
- push_kit 🔒
- uid 🔒
- uuid 🔒
- NOTE: Intended to be run only on logged-in clients.
- Ensure that client role is above target role, for the purpose of performing some (often permanent) administrative action on the target. Note that this function is not a replacement for actually verifying that the client should be able to execute the command at all, which still needs to be rechecked, nor does it guarantee that either the client or the target actually have an entry in the admin settings file.
Type Aliases
- Handler function called when the command is executed.