Package com.l2jfrozen.gameserver.model.entity

Examples of com.l2jfrozen.gameserver.model.entity.Announcements


   * @param restart true if the server will restart after shutdown
   */

  public void startTelnetShutdown(String IP, int seconds, boolean restart)
  {
    Announcements _an = Announcements.getInstance();
    _log.log(Level.WARNING,"IP: " + IP + " issued shutdown command. " + MODE_TEXT[_shutdownMode] + " in " + seconds + " seconds!");

    if(restart)
    {
      _shutdownMode = TELL_RESTART;
    }
    else
    {
      _shutdownMode = TELL_SHUTDOWN;
    }

    if(_shutdownMode > 0)
    {
      _an.announceToAll("Server is " + MODE_TEXT[_shutdownMode] + " in " + seconds + " seconds!");
      _an.announceToAll("Please exit game now!!");
    }

    if(_counterInstance != null)
    {
      _counterInstance._abort();
View Full Code Here


   *
   * @param IP IP Which Issued shutdown command
   */
  public void telnetAbort(String IP)
  {
    Announcements _an = Announcements.getInstance();
    _log.log(Level.WARNING,"IP: " + IP + " issued shutdown ABORT. " + MODE_TEXT[_shutdownMode] + " has been stopped!");
    _an.announceToAll("Server aborts " + MODE_TEXT[_shutdownMode] + " and continues normal operation!");
    _an = null;

    if(_counterInstance != null)
    {
      _counterInstance._abort();
View Full Code Here

   *
   * @param activeChar GM who issued the abort command
   */
  public void abort(L2PcInstance activeChar)
  {
    Announcements _an = Announcements.getInstance();
    _log.log(Level.WARNING,"GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") issued shutdown ABORT. " + MODE_TEXT[_shutdownMode] + " has been stopped!");
    _an.announceToAll("Server aborts " + MODE_TEXT[_shutdownMode] + " and continues normal operation!");
    _an = null;

    if(_counterInstance != null)
    {
      _counterInstance._abort();
View Full Code Here

  /**
   * this sends a last byebye, disconnects all players and saves data
   */
  private synchronized void saveData()
  {
    Announcements _an = Announcements.getInstance();
    switch(_shutdownMode)
    {
      case SIGTERM:
        System.err.println("SIGTERM received. Shutting down NOW!");
        break;

      case GM_SHUTDOWN:
        System.err.println("GM shutdown received. Shutting down NOW!");
        break;

      case GM_RESTART:
        System.err.println("GM restart received. Restarting NOW!");
        break;

      case TASK_SHUTDOWN:
        System.err.println("Auto task shutdown received. Shutting down NOW!");
        break;

      case TASK_RESTART:
        System.err.println("Auto task restart received. Restarting NOW!");
        break;

      case TELL_SHUTDOWN:
        System.err.println("Telnet shutdown received. Shutting down NOW!");
        break;

      case TELL_RESTART:
        System.err.println("Telnet restart received. Restarting NOW!");
        break;

    }
    try
    {
      _an.announceToAll("Server is " + MODE_TEXT[_shutdownMode] + " NOW!");
      _an = null;
    }
    catch(Throwable t)
    {
      if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.entity.Announcements

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.