Skip to content

Commit

Permalink
Allow admins to list all areas if they want to
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Oct 29, 2024
1 parent d2b227e commit c68a23e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chatcommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c68a23e

Please sign in to comment.