|
@ -104,6 +104,7 @@ minetest.register_chatcommand("creative_area_rm", { |
|
|
local success = switch_creative.astore:remove_area(area_id) |
|
|
local success = switch_creative.astore:remove_area(area_id) |
|
|
if success then |
|
|
if success then |
|
|
minetest.chat_send_player(name, "[creative_area] Area " .. area_id .. "removed") |
|
|
minetest.chat_send_player(name, "[creative_area] Area " .. area_id .. "removed") |
|
|
|
|
|
switch_creative:set_area_privs(area_id, nil) |
|
|
else |
|
|
else |
|
|
minetest.chat_send_player(name, "[creative_area] Error removing area " .. area_id) |
|
|
minetest.chat_send_player(name, "[creative_area] Error removing area " .. area_id) |
|
|
end |
|
|
end |
|
|