finish deprecation

This commit is contained in:
VorTechnix 2024-09-13 10:47:42 -07:00
parent 12747f6524
commit d1c4f9bd19
No known key found for this signature in database
GPG Key ID: 091E91A69545D5BA
3 changed files with 16 additions and 16 deletions

@ -7,15 +7,15 @@ local Vector3 = wea_c.Vector3
-- ██ ██ ██ ██ ██ -- ██ ██ ██ ██ ██
-- ███████ ██████ ██████ ███████ -- ███████ ██████ ██████ ███████
worldeditadditions_core.register_command("scol", { worldeditadditions_core.register_command("scol", {
params = "[<axis1>] <length>", params = "None",
description = "Set WorldEdit region position 2 at a set distance along 1 axis.", description = "Deprecated.",
privs = { worldedit = true }, privs = { worldedit = true },
require_pos = 1, require_pos = 1,
parse = function(params_text) parse = function(params_text)
------------------------- return params_text
end, end,
func = function(name) func = function(name, paramtext)
return true, "DEPRECATED: please use //srel instead..." return false, "DEPRECATED: please use //srel instead..."
end, end,
}) })

@ -7,15 +7,15 @@ local Vector3 = wea_c.Vector3
-- ██ ██ ██ ██ ██ ██ ██ -- ██ ██ ██ ██ ██ ██ ██
-- ███████ ██████ ██████ ██████ ███████ -- ███████ ██████ ██████ ██████ ███████
worldeditadditions_core.register_command("scube", { worldeditadditions_core.register_command("scube", {
params = "[<axis1> [<axis2> [<axis3>]]] <length>", params = "None",
description = "Set WorldEdit region position 2 at a set distance along 3 axes.", description = "Deprecated.",
privs = { worldedit = true }, privs = { worldedit = true },
require_pos = 1, require_pos = 1,
parse = function(params_text) parse = function(params_text)
------------------------- return params_text
end, end,
func = function(name) func = function(name, paramtext)
return true, "DEPRECATED: please use //srel instead..." return false, "DEPRECATED: please use //srel instead..."
end, end,
}) })

@ -8,15 +8,15 @@ local Vector3 = wea_c.Vector3
-- ██ ██ ██ ██ ██ ██ -- ██ ██ ██ ██ ██ ██
-- ███████ ██ ██ ███████ ██████ ██ -- ███████ ██ ██ ███████ ██████ ██
worldeditadditions_core.register_command("srect", { worldeditadditions_core.register_command("srect", {
params = "[<axis1> [<axis2>]] <length>", params = "None",
description = "Set WorldEdit region position 2 at a set distance along 2 axes.", description = "Deprecated.",
privs = { worldedit = true }, privs = { worldedit = true },
require_pos = 1, require_pos = 1,
parse = function(params_text) parse = function(params_text)
------------------------- return params_text
end, end,
func = function(name) func = function(name, paramtext)
return true, "DEPRECATED: please use //srel instead..." return false, "DEPRECATED: please use //srel instead..."
end, end,
}) })