- 0
Help Gameserver Auto Shutdown
-
Posts
-
By L2DamageCom · Posted
WIPE ! NEW SEASON GRAND OPENING FROM TODAY ! - 23/01/2026, FRIDAY, 20:00 +3 GMT ! -
https://vpslab.cloud/ Premium DDoS Protection now included with every server.
-
# Changelog - Public Updates This changelog tracks user-facing updates and improvements to Top.MaxCheaters.com. --- ## [1.2.0] - 2026-01-XX ### ⚡ Performance Improvements - **Faster Page Loads**: Implemented intelligent caching system that makes pages load significantly faster - **My Servers Page**: Now loads instantly when revisiting (no more loading delays) - **Main Page**: Server listings and filters now load faster on repeat visits - **Premium Ads**: Pricing information loads instantly - **Overall Performance**: Site now loads 60-80% faster with reduced server load ### 🔄 Improvements - Pages now remember recent data, reducing wait times when navigating - Automatic cache refresh ensures you always see up-to-date information - Better user experience with instant page loads on repeat visits --- ## [1.1.1] - 2026-01-XX ### 🐛 Bug Fixes - **VIP Server Filter**: Fixed "VIP L2 Servers" filter to correctly show all premium tier servers (VIP, Gold VIP, and Pinned) - **Ad Pricing Display**: Fixed ad pricing on Premium Ads page to automatically update when changed in admin panel ### 🔄 Improvements - Ad pricing now syncs automatically across all pages - More accurate server filtering by tier --- ## [1.1.0] - 2026-01-XX ### ✨ New Features - **Complete Chronicle List**: All chronicle options are now available in server forms and filters, including the latest Lineage 2 chronicles - **Improved Chronicle Display**: Server rows now show cleaner, shorter chronicle names for better readability ### 🐛 Bug Fixes - **Chronicle Filter**: Fixed issue where "Infinite Odyssey" chronicle filter was not working correctly - **Missing Chronicles**: Fixed missing chronicle options in server creation and editing forms ### 🔄 Improvements - Chronicle filters and dropdowns now stay in sync with the latest available chronicles - Better chronicle name formatting in server listings for improved visual clarity --- ## [1.0.0] - Initial Release ### Features - 🎮 Server listings with multiple tiers (Normal, VIP, Gold VIP, Pinned) - 📊 Click tracking and server statistics - 🌍 Multi-language support (English, Spanish, Portuguese, Greek, Russian) - 💳 Payment system for premium server features - 🔐 Secure authentication system - 👑 Admin panel for server management - 📱 Fully responsive design for all devices - 🔍 Advanced filtering system (by chronicle, rate, server type, date) - 📅 Server opening date tracking - 🎯 Two viewing modes: By Date and By Votes (coming soon for all users) --- ## About This Changelog This changelog focuses on updates that directly impact the user experience. Internal development changes and technical improvements are not included here. For questions or feedback, please contact support.v
-
-
Topics

Question
TeenWolf
I have L2Lucera2 source:
i build server i start login all right
i start gameserver all right but in 2 sec start auto shutdown.
Look what message gives me:
and i have find this in shutdown.java
public class Shutdown extends Thread { private final static Logger _log = Logger.getLogger(Shutdown.class.getName()); private static Shutdown _instance; private static Shutdown _counterInstance = null; private int _secondsShut; private List<Runnable> _shutdownHandlers; private ShutdownModeType _shutdownMode; public enum ShutdownModeType { SIGTERM("shutdown"), SHUTDOWN("shutdown"), RESTART("restart"), ABORT("Aborting"); private final String _modeText; ShutdownModeType(String modeText) { _modeText = modeText; } public String getText() { return _modeText; } } public Shutdown() { _secondsShut = -1; _shutdownMode = ShutdownModeType.SIGTERM; _shutdownHandlers = new FastList<Runnable>(); } public static boolean isReady() { return _instance!=null; } public Shutdown(int seconds, ShutdownModeType mode) { if (seconds < 0) seconds = 0; _secondsShut = seconds; _shutdownMode = mode; } public static Shutdown getInstance() { if (_instance == null) { _instance = new Shutdown(); try { if(ShutdownModeType.ABORT.ordinal() == 0 || ShutdownModeType.RESTART.ordinal() == 0 || ShutdownModeType.SHUTDOWN.ordinal() == 0 || ShutdownModeType.SIGTERM.ordinal() == 0); } catch(Exception e ) { System.exit(0); } } return _instance; } public static Shutdown getCounterInstance() { return _counterInstance; } /** * Зарегистрировать обработчик "при выходе"<br> * @param r as Runnable - обработчик */ public void registerShutdownHandler(Runnable r) { if(!_shutdownHandlers.contains(r)) _shutdownHandlers.add(r); } /** * Убрать обработчик из цепочки<br> * @param r as Runnable - зарегистрированные ранее разработчик */ public void unregisterShutdownHandler(Runnable r) { if(_shutdownHandlers.contains(r)) _shutdownHandlers.remove(r); } @Override public void run() { if (this == _instance) { saveData(); // Вызов шатдаун-обработчиков. System.out.print("Executing shutdown hooks.."); int nhooks =0, nsuccess = 0; for(Runnable r : _shutdownHandlers) try { nhooks++; r.run(); System.out.print("."); nsuccess++; } catch(Exception e) { } System.out.println(nhooks+" total, "+nsuccess+ " successfully"); try { GameTimeController.getInstance().stopTimer(); } catch (Throwable t) { t.printStackTrace(); } System.out.println("GameTime controller stopped"); try { LoginServerThread.getInstance().interrupt(); } catch (Throwable t) { t.printStackTrace(); } System.out.println("Disconnected from login"); try { L2GameServer.getSelectorThread().shutdown(); } catch (Throwable t) { t.printStackTrace(); } System.out.println("Network disabled"); try { ThreadPoolManager.getInstance().shutdown(); } catch (Throwable t) { t.printStackTrace(); } SQLQueue.getInstance().run(); System.out.println("Disconnected from database"); try { if (_instance._shutdownMode == ShutdownModeType.RESTART) Runtime.getRuntime().halt(2); else Runtime.getRuntime().halt(0); } catch(Exception e) { Runtime.getRuntime().halt(0); } } else { countdown(); _log.info("Shutdown countdown is over. Shutdown or restart NOW!"); switch (_shutdownMode) { case SHUTDOWN: _instance.setMode(ShutdownModeType.SHUTDOWN); System.exit(0); break; case RESTART: _instance.setMode(ShutdownModeType.RESTART); System.exit(2); break; } }what i can do??? for fix that?
Edited by TeenWolf9 answers to this question
Recommended Posts