From c68a23eed8a887ce108416b1d5577da9a81547c7 Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Tue, 29 Oct 2024 16:57:16 +0800 Subject: [PATCH] Allow admins to list all areas if they want to --- chatcommands.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chatcommands.lua b/chatcommands.lua index f1f058a..dc899b6 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -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