add unblocking all
parent
f1b66f5ab8
commit
ef7725f0de
|
@ -26,6 +26,8 @@ Whether to kick newly created players
|
|||
|
||||
## Commands
|
||||
|
||||
Comands require the `nonew` privilege.
|
||||
|
||||
* `nn_state [ on | off]`
|
||||
|
||||
Without arguments, displays the general state of NoNew ; else sets its state
|
||||
|
@ -38,3 +40,7 @@ Adds a player to the block list and kick them if `nonew.state` is on
|
|||
|
||||
Removes a player form the block list ; only effective if the player had already previously joined.
|
||||
|
||||
* `nn_unblockall`
|
||||
|
||||
Unblock all players - do this after you have banned the accounts you needed to.
|
||||
|
||||
|
|
|
@ -10,6 +10,14 @@ local function tokenize(argstring)
|
|||
return args
|
||||
end
|
||||
|
||||
minetest.register_chatcommand("nn_unblockall", {
|
||||
description = "Unblock all players",
|
||||
privs = {nonew = true},
|
||||
func = function(caller, argstring)
|
||||
nonew:unblock_all()
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("nn_unblock", {
|
||||
description = "Unblock players",
|
||||
privs = {nonew = true},
|
||||
|
|
Loading…
Reference in New Issue