forked from nalc/areas
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.")
|
"Showing your areas.")
|
||||||
end
|
end
|
||||||
for _, area in pairs(areas.areas) do
|
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,
|
minetest.chat_send_player(name,
|
||||||
areas:toString(area))
|
areas:toString(area))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user