04-27-2013, 11:49 PM
AutoSave&Restart v1
|
I don't think a self-restart would suffice for that, you'd need to shut down the server and run it again by an external tool, rather than an internal plugin.
I suppose it's the same as FS #361, then it needs more data - I need the compiled MCServer binary and the core dump for that.
04-28-2013, 04:47 AM
UPDATED:
Now it includes autosave (MCServer has it but is not configurable). One question, is there anyway to kick all players with a message?
04-28-2013, 04:49 AM
I think you have to do ForEachPlayer in a ForEachWorld function and in there you do Player:GetClientHandle():Kick("message")
04-28-2013, 04:58 AM
04-28-2013, 05:01 AM
you have to do this:
local loopPlayers = function(Player) Player:GetClientHandle():Kick("Message") end local loopWorlds = function(World) World:ForEachPlayer(loopPlayers) end cRoot:Get():ForEachWorld(loopWorlds) (04-28-2013, 05:01 AM)STR_Warrior Wrote: you have to do this:Thank you very much, I'm a noob making plugins.
04-28-2013, 05:11 AM
04-28-2013, 05:17 AM
cool good luck with that btw maybe add something that if the restarttime is 0 it wil only save the world or something.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)