mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-22 04:42:23 +01:00
Show sub-areas in /list_areas
This commit is contained in:
parent
5f68c111dc
commit
810a706e5f
@ -206,7 +206,7 @@ minetest.register_chatcommand("list_areas", {
|
||||
"Showing your areas.")
|
||||
end
|
||||
for _, area in pairs(areas.areas) do
|
||||
if admin or area.owner == name then
|
||||
if admin or areas:isAreaOwner(area.id, name) then
|
||||
minetest.chat_send_player(name,
|
||||
areas:toString(area))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user