Print off when it receives packet 32 - Example for ProtocolLib

This commit is contained in:
Andrew 2013-11-16 12:12:29 +13:00
parent 1c0638cf5d
commit 30754429a9

View File

@ -94,6 +94,8 @@ public class PacketsManager {
Packets.Server.ENTITY_EQUIPMENT, Packets.Server.BED) {
@Override
public void onPacketSending(PacketEvent event) {
if (event.getPacketID() == Packets.Server.ENTITY_LOOK)
System.out.print("Packet 32 received master");
final Player observer = event.getPlayer();
// First get the entity, the one sending this packet
StructureModifier<Entity> entityModifer = event.getPacket().getEntityModifier(observer.getWorld());