ScRaB4ever Posted December 3, 2012 Share Posted December 3, 2012 is it even working?? ive test it and it doesnt work for me.... Link to comment Share on other sites More sharing options...
audriuziz Posted April 11, 2013 Share Posted April 11, 2013 Thx for this share :) Link to comment Share on other sites More sharing options...
xdem Posted April 11, 2013 Share Posted April 11, 2013 dont use sleep on your server guys, find an autorestart with threadpoolmanager Link to comment Share on other sites More sharing options...
Vision Posted April 11, 2013 Share Posted April 11, 2013 dont use sleep on your server guys, find an autorestart with threadpoolmanager If you have something on mind just make it public. Link to comment Share on other sites More sharing options...
xdem Posted April 11, 2013 Share Posted April 11, 2013 If you have something on mind just make it public. What else u need mate, I told that it should be done with threadpoolmanager, its easy Link to comment Share on other sites More sharing options...
Vision Posted April 11, 2013 Share Posted April 11, 2013 What else u need mate, I told that it should be done with threadpoolmanager, its easy Make a topic and and show us how specific can you be in order to " Autorestart with Threadpoolmanager". Link to comment Share on other sites More sharing options...
xdem Posted April 11, 2013 Share Posted April 11, 2013 Make a topic and and show us how specific can you be in order to " Autorestart with Threadpoolmanager". I think that its to easy too create a topic for it, but quickly I made this: } _selectorThread.start(); } + static int hours=1;//1 hour + private static void scheduleNextRestart() + { + _log.info("Scheduled GS restart after " + hours + " hours"); + ThreadPoolManager.getInstance().scheduleGeneral(new Restart(), hours * 3600000); + } + public static class Restart implements Runnable + { + @Override + public void run() + { + L2PcInstance manager = L2PcInstance.createDummyPlayer(0, "Restart Manager"); + Shutdown.getInstance().startShutdown(manager, 900000, true); + manager.decayMe(); + } + } public static SelectorThread<L2GameClient> getSelectorThread() { return _selectorThread; } and Util.printSection("Game Server"); + scheduleNextRestart(); if (Config.IRC_ENABLED) IrcManager.getInstance().getConnection().sendChan(Config.IRC_MSG_START); on GamerServer.java This should work. PS: about that dummy pc Instance, dont flame me dat was a quick fix xD Link to comment Share on other sites More sharing options...
DarknessVoice Posted April 13, 2013 Share Posted April 13, 2013 :not bad: this won't restart the whole server ?!! :o Link to comment Share on other sites More sharing options...
gma93 Posted May 4, 2013 Share Posted May 4, 2013 Very nice! Tank You! Link to comment Share on other sites More sharing options...
hendrickblaze Posted September 21, 2023 Share Posted September 21, 2023 more detailed pls? how to install/run or something? not everyone have the knogledges to do things pls have that in mind before post things... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now