no cooldown for admins
This commit is contained in:
parent
d6dfd0b453
commit
1e2e9721e6
|
@ -497,6 +497,7 @@ minetest.register_chatcommand("reset",{
|
|||
description = S"Get a new island",
|
||||
privs = {interact = true},
|
||||
func = function(name)
|
||||
if not minetest.check_player_privs(name,{server=true}) then
|
||||
local utime = minetest.get_server_uptime()
|
||||
local cd = cooldowns[name]
|
||||
if cd and cd > utime then
|
||||
|
@ -504,6 +505,7 @@ minetest.register_chatcommand("reset",{
|
|||
return
|
||||
end
|
||||
cooldowns[name] = utime + cooldown
|
||||
end
|
||||
local is = players[name]
|
||||
if is then
|
||||
players[name] = nil
|
||||
|
|
Loading…
Reference in New Issue