Allow admins to list all areas if they want to

This commit is contained in:
1F616EMO 2024-10-29 16:57:16 +08:00
parent d2b227eca6
commit c68a23eed8
No known key found for this signature in database
GPG Key ID: EF52EFA8E05859B2

View File

@ -180,7 +180,11 @@ minetest.register_chatcommand("list_areas", {
local admin_show_summary = admin
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
admin_show_summary = false
end