megastu Posted March 3, 2016 Share Posted March 3, 2016 Is there any way to enable PvP from the console without restarting the server? I don't mind if it's tricky, I'm willing to throw a few dozen lines of lua at it. Link to comment Share on other sites More sharing options...
vosdbk Posted March 3, 2016 Share Posted March 3, 2016 the server must be restarted to reloading the settings Link to comment Share on other sites More sharing options...
megastu Posted March 3, 2016 Author Share Posted March 3, 2016 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 More sharing options...
Muche Posted March 3, 2016 Share Posted March 3, 2016 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 More sharing options...
Recommended Posts
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.