Package com.comphenix.protocol.injector

Examples of com.comphenix.protocol.injector.PlayerLoggedOutException


   
    // Send the packet, or drop it completely
    if (injector != null) {
      injector.sendServerPacket(packet.getHandle(), marker, filters);
    } else {
      throw new PlayerLoggedOutException(String.format(
          "Unable to send packet %s (%s): Player %s has logged out.",
          packet.getType(), packet, receiver
      ));
    }
  }
View Full Code Here


   
    // Process the given packet, or simply give up
    if (injector != null)
      injector.processPacket(mcPacket);
    else
      throw new PlayerLoggedOutException(String.format(
          "Unable to receieve packet %s. Player %s has logged out.",
          mcPacket, player
      ));
  }
View Full Code Here

          filterImpossibleWarnings(reporter), null, invoker, null);
     
        created.initializePlayer(player);
       
        if (created.getNetworkManager() == null)
          throw new PlayerLoggedOutException("Player " + player + " has logged out.");
        injector = saveInjector(created.getNetworkManager(), created);
       
      } catch (IllegalAccessException e) {
        throw new RuntimeException("Cannot create dummy injector.", e);
      }
View Full Code Here

TOP

Related Classes of com.comphenix.protocol.injector.PlayerLoggedOutException

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.