Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.logout()


            e.printStackTrace();
         
         
          _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: ",e);
          if (player != null)
            player.logout();
        }
      }
      rs.close();
      stm.close();
      _log.info("Loaded: " +nTraders+ " offline trader(s)");
View Full Code Here


        L2PcInstance plyr = L2World.getInstance().getPlayer(player);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);

        if(plyr != null)
        {
          plyr.logout();
          sm.addString("You kicked " + plyr.getName() + " from the game.");
        }
        else
        {
          sm.addString("Player " + player + " was not found in the game.");
View Full Code Here

        String player = st.nextToken();
        L2PcInstance plyr = L2World.getInstance().getPlayer(player);

        if(plyr != null)
        {
          plyr.logout();
        }

        setAccountAccessLevel(player, activeChar, -100);

        plyr = null;
View Full Code Here

            _usrCommand = _usrCommand.substring(5);
            final L2PcInstance player = L2World.getInstance().getPlayer(_usrCommand);
            if (player != null)
            {
              player.sendMessage("You are kicked by gm");
              player.logout();
              _print.println("Player kicked");
            }
          }
          catch (StringIndexOutOfBoundsException e)
          {
View Full Code Here

      L2PcInstance player = (L2PcInstance) object;
      L2PcInstance tmp =_allPlayers.get(player.getName().toLowerCase());
      if(tmp != null && tmp != player) //just kick the player previous instance
      {
        tmp.store(); // Store character and items
        tmp.logout();
       
        if(tmp.getClient() != null)
        {
          tmp.getClient().setActiveChar(null); // prevent deleteMe from being called a second time on disconnection
        }
View Full Code Here

        final String player = st.nextToken();
        final L2PcInstance plyr = L2World.getInstance().getPlayer(player);
       
        if(plyr != null)
        {
          plyr.logout(true);
          activeChar.sendMessage("You kicked " + plyr.getName() + " from the game.");
          RegionBBSManager.getInstance().changeCommunityBoard();
        }
       
        if(plyr != null && plyr.isOffline())
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.