Added /list_caged command
This commit is contained in:
parent
5ef5fee1de
commit
5b6484eddc
14
init.lua
14
init.lua
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user