Jump to content

Enable PVP without server restart?


Recommended Posts

34 minutes ago, vosdbk said:

the server must be restarted to reloading the settings

Yeah, so how can we make it so that PvP could be enabled conditionally or temporarily.

Anyone with an imagination want to chime in? 

Link to comment
Share on other sites

PvP setting seems to be checked by TheNet:GetPVPEnabled(). You could try making a mod that overwrites it:

local old_pvpfn = TheNet.GetPVPEnabled
local function mypvp(self)
    print("return your own pvp setting")
    return(old_pvpfn(self))
end
getmetatable(TheNet).__index.GetPVPEnabled = mypvp

Also, I would set the normal pvp setting to true, so the server appears as PvP in the server list, so people won't be surprised by it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...