<?xml version="1.0" encoding="UTF-8"?>
<mod name="Change World Type" enabled="yes">
<globalevent name="changewt" interval="21600" event="buffer"><![CDATA[
setWorldType(getWorldType() == WORLD_TYPE_PVP and WORLD_TYPE_PVP_ENFORCED or WORLD_TYPE_PVP)
]]></globalevent>
</mod>
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Change World Type" enabled="yes">
<globalevent name="changewt" interval="21600" event="buffer"><![CDATA[
setWorldType(getWorldType() == WORLD_TYPE_PVP and WORLD_TYPE_PVP_ENFORCED or WORLD_TYPE_PVP)
for _, player in ipairs(getPlayersOnline()) do
doPlayerPopupFUI(player, "Gameworld type has been changed.")
end
]]></globalevent>
</mod>
21600 = 6 hours in TFS 0.3.6 and olderHow many hours did you put there?
yes, it goes into folder /mods/and this is a mod file correct?
fixedCode:doPlayerPopupF[B][COLOR="Red"]Y[/COLOR][/B]I(player, "Gameworld type has been changed.")
no.Thanks you guys :>
last question: do i have to add this:to globalevent?Code:<globalevent name="changewt" type="pvpmode" event="script" value="pvpmode.lua"/>