The command does not work on tfs 1.2 8.6 can anyone help?
Lua:
local savingEvent = 0
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
if(isNumber(param)) then
stopEvent(savingEvent)
save(tonumber(param) * 60 * 1000)
else
doSaveServer()
end
return true
end
function save(delay)
doSaveServer()
if(delay > 0) then
savingEvent = addEvent(save, delay, delay)
end
end