Added /list_caged command

This commit is contained in:
ezhh 2016-07-25 00:45:43 +01:00
parent 5ef5fee1de
commit 5b6484eddc

View File

@ -260,6 +260,20 @@ minetest.register_chatcommand("uncage", {
end end
}) })
-- list caged players
minetest.register_chatcommand("list_caged", {
params = "",
description = "List all caged players.",
privs = {server = true},
func = function (_, _)
local players = ""
for player, _ in pairs(priv_table) do
players = players .. player .. ", "
end
return true, "Currently caged players: " .. players
end
})
--Other Commands --Other Commands