mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-16 13:03:00 +00:00
added some documentation to register_alias
This commit is contained in:
parent
b89161a1bb
commit
e4335b7094
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue