From 5331b32159d9daf92e808acf47878ccc4895d0b0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 17 Oct 2024 03:11:46 +0100 Subject: [PATCH] register_command: add since 1.15 for async support --- worldeditadditions_core/core/register_command.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/core/register_command.lua b/worldeditadditions_core/core/register_command.lua index 17adb35..511391e 100644 --- a/worldeditadditions_core/core/register_command.lua +++ b/worldeditadditions_core/core/register_command.lua @@ -28,7 +28,7 @@ end -- - `description` (string) A description of the command. -- - `privs` (`{someprivilege=true, ....}`) The privileges required to use 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`. -- - `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.