Examples of kick()


Examples of com.surftools.BeanstalkClient.Client.kick()

    // nothing to reserve
    job = client.reserve(0);
    assertNull(job);

    // kick nothing
    int count = client.kick(0);
    assertEquals(0, count);
    job = client.reserve(0);
    assertNull(job);

    // kick something
View Full Code Here

Examples of com.surftools.BeanstalkClient.Client.kick()

    assertEquals(0, count);
    job = client.reserve(0);
    assertNull(job);

    // kick something
    count = client.kick(1);
    assertEquals(1, count);
    job = client.reserve(0);
    assertNotNull(job);
    assertEquals(jobId, job.getJobId());
    assertEquals(srcString, new String(job.getData()));
View Full Code Here

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

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

    }
    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

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

    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

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

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

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

          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

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

    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

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

      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

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

        }
        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
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.