mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 02:00:40 +01:00
Allow admins to list all areas if they want to
This commit is contained in:
parent
d2b227eca6
commit
c68a23eed8
@ -180,7 +180,11 @@ minetest.register_chatcommand("list_areas", {
|
|||||||
local admin_show_summary = admin
|
local admin_show_summary = admin
|
||||||
local owner_name = name
|
local owner_name = name
|
||||||
|
|
||||||
if admin and #param > 0 then
|
param = param:trim()
|
||||||
|
|
||||||
|
if param == "*" then
|
||||||
|
admin_show_summary = false
|
||||||
|
elseif admin and #param > 0 then
|
||||||
owner_name = param
|
owner_name = param
|
||||||
admin_show_summary = false
|
admin_show_summary = false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user