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 ๐
- ban_end_date ๐
- build_buff ๐
- can_send_message ๐
- cast_buff ๐
- clear_skillset ๐
- do_command ๐
- find_alias ๐
- find_username ๐
- find_uuid ๐
- get_areas_mut ๐
- get_entity_target ๐
- handle_adminify ๐
- handle_alias ๐
- handle_area_add ๐
- handle_area_list ๐
- handle_area_remove ๐
- handle_aura ๐
- handle_ban ๐
- handle_ban_ip ๐
- handle_battlemode ๐
- handle_body ๐
- handle_buff ๐
- handle_build ๐
- handle_death_effect ๐
- handle_debug_column ๐
- handle_debug_ways ๐
- handle_dismount ๐
- handle_drop_all ๐
- handle_explosion ๐
- handle_faction ๐
- handle_give_item ๐
- handle_goto ๐
- handle_group ๐
- handle_group_invite ๐
- handle_group_kick ๐
- handle_group_leave ๐
- handle_group_promote ๐
- handle_health ๐
- handle_into_npc ๐
- handle_join_faction ๐
- handle_jump ๐
- handle_kick ๐
- handle_kill ๐
- handle_kill_npcs ๐
- handle_kit ๐
- handle_lantern ๐
- handle_light ๐
- handle_lightning ๐
- handle_location ๐
- handle_make_block ๐
- handle_make_npc ๐
- handle_make_sprite ๐
- handle_make_volume ๐
- handle_motd ๐
- handle_mount ๐
- handle_object ๐
- handle_outcome ๐
- handle_permit_build ๐
- handle_players ๐
- handle_region ๐
- handle_reload_chunks ๐
- handle_remove_lights ๐
- handle_reset_recipes ๐
- handle_respawn ๐
- handle_revoke_build ๐
- handle_rtsim_chunk ๐
- handle_rtsim_info ๐
- handle_rtsim_npc ๐
- handle_rtsim_purge ๐
- handle_rtsim_tp ๐
- handle_safezone ๐
- handle_say ๐
- handle_scale ๐
- handle_set_motd ๐
- handle_site ๐TODO: Add autocompletion if possible (might require modifying enum to handle dynamic values).
- handle_skill_point ๐
- handle_skill_preset ๐
- handle_spawn ๐
- handle_spawn_airship ๐
- handle_spawn_portal ๐
- handle_spawn_ship ๐
- handle_spawn_wiring ๐
- handle_spot ๐
- handle_sudo ๐
- handle_tell ๐
- handle_tether ๐
- handle_time ๐
- handle_time_scale ๐
- handle_tp ๐
- handle_unban ๐
- handle_unban_ip ๐
- handle_version ๐
- handle_waypoint ๐
- handle_weather_zone ๐
- handle_whitelist ๐
- handle_world ๐
- kick_player ๐
- make_ban_info ๐
- no_sudo ๐
- parse_alignment ๐
- parse_buffkind ๐
- parse_skill_tree ๐
- position ๐
- push_item ๐
- push_kit ๐
- real_role ๐
- reload_chunks_inner ๐
- set_skills ๐
- socket_addr ๐
- uid ๐
- uuid ๐
- uuid_to_username ๐NOTE: Intended to be run only on logged-in clients.
- verify_above_role ๐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ยง
- CmdResult ๐
- CommandHandler ๐Handler function called when the command is executed.