Examples of sendServerPacket()


Examples of com.comphenix.protocol.injector.player.NetworkObjectInjector.sendServerPacket()

    if (filters)
      ignoredPackets.remove(packet.getHandle());
    else
      ignoredPackets.add(packet.getHandle());
     
    networkObject.sendServerPacket(packet.getHandle(), marker, filters);
  }

  /**
   * Invoked when a plugin wants to simulate receiving a packet.
   * @param player - the supposed sender.
View Full Code Here

Examples of com.comphenix.protocol.injector.server.SocketInjector.sendServerPacket()

  public void sendServerPacket(Player receiver, PacketContainer packet, NetworkMarker marker, boolean filters) throws InvocationTargetException {
    SocketInjector injector = getInjector(receiver);
   
    // 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
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.