Module cmd

Source
Expand description

ยงImplementing new commands.

To implement a new command provide a handler function in do_command.

Enumsยง

KitEntry ๐Ÿ”’

Traitsยง

ChatCommandExt

Functionsยง

area ๐Ÿ”’
ban_end_date ๐Ÿ”’
build_buff ๐Ÿ”’
can_send_message ๐Ÿ”’
cast_buff ๐Ÿ”’
clear_skillset ๐Ÿ”’
do_command ๐Ÿ”’
edit_banlist_feedback ๐Ÿ”’
edit_setting_error_feedback ๐Ÿ”’
edit_setting_feedback ๐Ÿ”’
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_battlemode_force ๐Ÿ”’
handle_body ๐Ÿ”’
handle_buff ๐Ÿ”’
handle_build ๐Ÿ”’
handle_clear_persisted_terrain ๐Ÿ”’
handle_create_location ๐Ÿ”’
handle_death_effect ๐Ÿ”’
handle_debug_column ๐Ÿ”’
handle_debug_ways ๐Ÿ”’
handle_delete_location ๐Ÿ”’
handle_destroy_tethers ๐Ÿ”’
handle_disconnect_all_players ๐Ÿ”’
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_repair_equipment ๐Ÿ”’
handle_reset_recipes ๐Ÿ”’
handle_respawn ๐Ÿ”’
handle_revoke_build ๐Ÿ”’
handle_revoke_build_all ๐Ÿ”’
handle_rtsim_chunk ๐Ÿ”’
handle_rtsim_info ๐Ÿ”’
handle_rtsim_npc ๐Ÿ”’
handle_rtsim_purge ๐Ÿ”’
handle_rtsim_tp ๐Ÿ”’
handle_safezone ๐Ÿ”’
handle_say ๐Ÿ”’
handle_scale ๐Ÿ”’
handle_server_physics ๐Ÿ”’
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_campfire ๐Ÿ”’
handle_spawn_portal ๐Ÿ”’
handle_spawn_ship ๐Ÿ”’
handle_spawn_training_dummy ๐Ÿ”’
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 ๐Ÿ”’
insert_or_replace_component ๐Ÿ”’
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.