This commit is contained in:
Lunovox 2024-02-29 21:37:55 -03:00
parent a32474939c
commit 5d4bcc8db3

View file

@ -468,7 +468,11 @@ end)
--[[ ]] --[[ ]]
minetest.after(3.5, function() minetest.after(3.5, function()
local timecheck = 0
minetest.register_globalstep(function(dtime) minetest.register_globalstep(function(dtime)
timecheck = timecheck + dtime
if timecheck >= 60 then
timecheck = 0
--local presname = modEUrn.handler.elected.president.name --local presname = modEUrn.handler.elected.president.name
local presname = modEUrn.getPresidentName() local presname = modEUrn.getPresidentName()
if type(presname)=="string" and presname~="" then if type(presname)=="string" and presname~="" then
@ -479,13 +483,14 @@ minetest.after(3.5, function()
local titlecolor = "#FF0000" local titlecolor = "#FF0000"
if result == true then if result == true then
titlecolor = "#00FF00" titlecolor = "#00FF00"
modEUrn.doSave()
end
minetest.chat_send_all( minetest.chat_send_all(
core.colorize(titlecolor, "[E-URN]").." "..cause core.colorize(titlecolor, "[E-URN]").." "..cause
) )
modEUrn.doSave()
end end
end end
end --Fim de if type(presname)=="string" and presname~="" then
end --Fim de if timecheck >= 60 then
end) end)
end) end)
--]] --]]