added some documentation to register_alias

This commit is contained in:
VorTechnix 2023-07-20 10:46:20 -07:00
parent b89161a1bb
commit e4335b7094
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA

View file

@ -1,6 +1,11 @@
local wea_c = worldeditadditions_core
--- Register an alias for command
-- @param cmdname_target: string - the new alias name
-- @param cmdname_source: string - the source command name
-- @param override: boolean (optional) - whether to override an existing target command
-- @returns: boolean - true if alias registration is successful, false otherwise
local function register_alias(cmdname_target, cmdname_source, override)
if override == nil then override = false end