Print off when it receives packet 32 - Example for ProtocolLib
This commit is contained in:
parent
1c0638cf5d
commit
30754429a9
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user