PacketPlayInFlying sent only once

Discussion in 'Plugin Development' started by Zaary, Jan 18, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    Zaary

    Hello, i have packet reader in my plugin but when i listen for PacketPlayInFlying, it execute only once when i join the server, later not.. any idea?

    Code:
    public void readPacket(Packet<?> packet){
    if(packet.getClass().getSimpleName().equalsIgnoreCase("PacketPlayInFlying")){
    Bukkit.broadcastMessage("flying");
        }
    }
    this broadcasts "flying" only once
     
Thread Status:
Not open for further replies.

Share This Page