mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 02:00:40 +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