mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
register_command: add since 1.15 for async support
This commit is contained in:
parent
bed5ec3add
commit
5331b32159
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ end
|
||||||
-- - `description` (string) A description of the command.
|
-- - `description` (string) A description of the command.
|
||||||
-- - `privs` (`{someprivilege=true, ....}`) The privileges required to use the command.
|
-- - `privs` (`{someprivilege=true, ....}`) The privileges required to use the command.
|
||||||
-- - `require_pos` (number) The number of positions required for the command.
|
-- - `require_pos` (number) The number of positions required for the command.
|
||||||
-- - `async=false` (bool) Whether this function is async. See the note in the description of this function for more information.
|
-- - `async=false` (bool) Whether this function is async. See the note in the description of this function for more information. *(since v1.15)*
|
||||||
-- - `parse` (function) A function that parses the raw param_text into proper input arguments to be passed to `nodes_needed` and `func`.
|
-- - `parse` (function) A function that parses the raw param_text into proper input arguments to be passed to `nodes_needed` and `func`.
|
||||||
-- - `nodes_needed` (function) A function that returns the number of nodes the command could potential change given the parsed input arguments.
|
-- - `nodes_needed` (function) A function that returns the number of nodes the command could potential change given the parsed input arguments.
|
||||||
-- - `func` (function) The function to execute when the command is run.
|
-- - `func` (function) The function to execute when the command is run.
|
||||||
|
|
Loading…
Reference in a new issue