Exemplo n.º 1
0
 @Override
 public void onEventCalled(SendPacketEvent event) {
   if (event.getPacket() instanceof C03PacketPlayer) {
     C03PacketPlayer player = (C03PacketPlayer) event.getPacket();
     double yDifference = mc.thePlayer.posY - mc.thePlayer.lastTickPosY;
     boolean groundCheck = yDifference == 0.0D;
     if (groundCheck && !mc.playerController.isHittingBlock) player.setOnGround(false);
   }
 }
Exemplo n.º 2
0
 public void onEventCalled(SendPacketEvent event) {
   if (event.getPacket() instanceof C01PacketChatMessage) {
     C01PacketChatMessage packet = (C01PacketChatMessage) event.getPacket();
     event.setCancelled(XIV.getInstance().getCommandManager().parseCommand(packet.getMessage()));
   }
 }