1.16.5 ProtocoLlib damage particle problem

Discussion in 'Spigot Plugin Development' started by kimchanyoung, Oct 4, 2020.

  1. I am trying to remove the damage particles using ProtocoLlib. But it doesn't work in the latest version.

    my code:
  2. I'm not really sure what you're trying to do by checking the packet entity modifier, since.. I don't think it even has any. Just read the particle type and if it's damage indicator, cancel the packet entirely. There isn't really a way you can detect if the particles were spawned due to damaging an entity, so this will also prevent damage indicator particles spawned through plugins to likely not appear as well.
    Code (Java):
    protocolManager.addPacketListener(new PacketAdapter(this, ListenerPriority.NORMAL, Server.WORLD_PARTICLES) {
        public void onPacketSending(PacketEvent event) {
            PacketContainer packet = event.getPacket();
            if (event.getPacketType() != Server.WORLD_PARTICLES)

            if (packet.getNewParticles().read(0).getParticle() == Particle.DAMAGE_INDICATOR)
  3. I am getting the following error: How do I fix this?[​IMG]
  4. Use org.bukkit.Particle, not com.comphenix.protocol.wrappers.EnumWrappers.Particle
  5. Thanks!
  6. pls give .jar
  7. Why are you asking for a file?