From d1c4f9bd191bcdec7b2254d8fa6aa1a9e94ba7b5 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:47:42 -0700 Subject: [PATCH] finish deprecation --- .../commands/selectors/scol.lua | 12 ++++++------ .../commands/selectors/scube.lua | 10 +++++----- .../commands/selectors/srect.lua | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/scol.lua b/worldeditadditions_commands/commands/selectors/scol.lua index 24b7435..be80ddb 100644 --- a/worldeditadditions_commands/commands/selectors/scol.lua +++ b/worldeditadditions_commands/commands/selectors/scol.lua @@ -7,15 +7,15 @@ local Vector3 = wea_c.Vector3 -- ██ ██ ██ ██ ██ -- ███████ ██████ ██████ ███████ worldeditadditions_core.register_command("scol", { - params = "[] ", - description = "Set WorldEdit region position 2 at a set distance along 1 axis.", - privs = {worldedit=true}, + params = "None", + description = "Deprecated.", + privs = { worldedit = true }, require_pos = 1, parse = function(params_text) - ------------------------- + return params_text end, - func = function(name) - return true, "DEPRECATED: please use //srel instead..." + func = function(name, paramtext) + return false, "DEPRECATED: please use //srel instead..." end, }) diff --git a/worldeditadditions_commands/commands/selectors/scube.lua b/worldeditadditions_commands/commands/selectors/scube.lua index a2233d8..14bf0e1 100644 --- a/worldeditadditions_commands/commands/selectors/scube.lua +++ b/worldeditadditions_commands/commands/selectors/scube.lua @@ -7,15 +7,15 @@ local Vector3 = wea_c.Vector3 -- ██ ██ ██ ██ ██ ██ ██ -- ███████ ██████ ██████ ██████ ███████ worldeditadditions_core.register_command("scube", { - params = "[ [ []]] ", - description = "Set WorldEdit region position 2 at a set distance along 3 axes.", + params = "None", + description = "Deprecated.", privs = { worldedit = true }, require_pos = 1, parse = function(params_text) - ------------------------- + return params_text end, - func = function(name) - return true, "DEPRECATED: please use //srel instead..." + func = function(name, paramtext) + return false, "DEPRECATED: please use //srel instead..." end, }) diff --git a/worldeditadditions_commands/commands/selectors/srect.lua b/worldeditadditions_commands/commands/selectors/srect.lua index 058094e..ab67808 100644 --- a/worldeditadditions_commands/commands/selectors/srect.lua +++ b/worldeditadditions_commands/commands/selectors/srect.lua @@ -8,15 +8,15 @@ local Vector3 = wea_c.Vector3 -- ██ ██ ██ ██ ██ ██ -- ███████ ██ ██ ███████ ██████ ██ worldeditadditions_core.register_command("srect", { - params = "[ []] ", - description = "Set WorldEdit region position 2 at a set distance along 2 axes.", + params = "None", + description = "Deprecated.", privs = { worldedit = true }, require_pos = 1, parse = function(params_text) - ------------------------- + return params_text end, - func = function(name) - return true, "DEPRECATED: please use //srel instead..." + func = function(name, paramtext) + return false, "DEPRECATED: please use //srel instead..." end, })