2024-10-23 05:00:53 +00:00
|
|
|
-- ██████ ███████ ███████ ███████ ████████
|
|
|
|
-- ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██████ █████ ███████ █████ ██
|
|
|
|
-- ██ ██ ██ ██ ██ ██
|
|
|
|
-- ██ ██ ███████ ███████ ███████ ██
|
2023-07-10 19:17:28 +00:00
|
|
|
|
2024-10-23 05:00:53 +00:00
|
|
|
local wea_c = worldeditadditions_core
|
2023-07-10 19:17:28 +00:00
|
|
|
|
2024-10-23 05:00:53 +00:00
|
|
|
worldeditadditions_core.register_command("reset", {
|
|
|
|
params = "",
|
|
|
|
description = "Clears all defined points and the currently defined region.",
|
|
|
|
privs = {worldedit=true},
|
|
|
|
override = true, -- Override the WorldEdit command
|
|
|
|
parse = function(params_text)
|
|
|
|
return true, params_text
|
|
|
|
end,
|
|
|
|
func = function(name)
|
|
|
|
wea_c.pos.clear(name)
|
|
|
|
return true, "Selection reset for "..name
|
2023-07-10 19:17:28 +00:00
|
|
|
end
|
2024-10-23 05:00:53 +00:00
|
|
|
})
|