Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.kick()


        {
          continue;
        }
        if (p.isDead())
        {
          p.kick();
          continue;
        }
        p.setNameColor(Config.SERVICES_OFFLINE_TRADE_NAME_COLOR);
        p.setOfflineMode(true);
        p.setIsOnline(true);
View Full Code Here


    }
    Player activeChar = client.getActiveChar();
    if (activeChar != null)
    {
      activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
      activeChar.kick();
    }
    else
    {
      client.close(ServerClose.STATIC);
    }
View Full Code Here

    Player oldPlayer = GameObjectsStorage.getPlayer(objectId);
    if (oldPlayer != null)
    {
      if (oldPlayer.isInOfflineMode() || oldPlayer.isLogoutStarted())
      {
        oldPlayer.kick();
        return null;
      }
      oldPlayer.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
      GameClient oldClient = oldPlayer.getNetConnection();
      if (oldClient != null)
View Full Code Here

          if (client != null)
          {
            Player player = client.getActiveChar();
            if (player != null)
            {
              player.kick();
              activeChar.sendMessage("Player " + player.getName() + " kicked.");
            }
          }
          break;
        }
View Full Code Here

          LoginServerCommunication.getInstance().sendPacket(new ChangeAccessLevel(banaccount, -100, 0));
          if (banned.isInOfflineMode())
          {
            banned.setOfflineMode(false);
          }
          banned.kick();
          Functions.sendDebugMessage(activeChar, "Player account " + banaccount + " is banned, player " + banned.getName() + " kicked.");
          break;
        default:
          activeChar.sendMessage("Command isn't implemented yet.");
          break;
View Full Code Here

    String msg = activeChar.getName() + " заблокировал торговл�? пер�?онажу " + targ.getName() + (days == -1 ? " на бе�?�?рочный период." : " на " + days + " дней.");
    Log.add(targ.getName() + ":" + days + tradeToString(targ, targ.getPrivateStoreType()), "tradeBan", activeChar);
    if (targ.isInOfflineMode())
    {
      targ.setOfflineMode(false);
      targ.kick();
    }
    else if (targ.isInStoreMode())
    {
      targ.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
      targ.standUp();
View Full Code Here

      if (plyr != null)
      {
        plyr.sendMessage(new CustomMessage("admincommandhandlers.YoureBannedByGM", plyr));
        plyr.setAccessLevel(-100);
        AutoBan.Banned(plyr, time, msg, activeChar.getName());
        plyr.kick();
        activeChar.sendMessage("You banned " + plyr.getName());
      }
      else if (AutoBan.Banned(player, -100, time, msg, activeChar.getName()))
      {
        activeChar.sendMessage("You banned " + player);
View Full Code Here

        }
        activeChar.sendMessage("Character " + player.getName() + " disconnected from server.");
        if (player.isInOfflineMode())
        {
          player.setOfflineMode(false);
          player.kick();
          return true;
        }
        player.sendMessage(new CustomMessage("admincommandhandlers.AdminDisconnect.YoureKickedByGM", player));
        player.sendPacket(Msg.YOU_HAVE_BEEN_DISCONNECTED_FROM_THE_SERVER_PLEASE_LOGIN_AGAIN);
        ThreadPoolManager.getInstance().schedule(new RunnableImpl()
View Full Code Here

        ThreadPoolManager.getInstance().schedule(new RunnableImpl()
        {
          @Override
          public void runImpl()
          {
            player.kick();
          }
        }, 500);
        break;
    }
    return true;
View Full Code Here

    }
    if (activeChar.getClan() != null)
    {
      activeChar.getClan().startNotifyClanLogOut(activeChar);
    }
    activeChar.kick();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.