Solved A problem with particles

Discussion in 'Plugin Development' started by xpaintall, Aug 17, 2021.

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

    xpaintall

    So basically, I'm coding in 1.8.8, and because there's no world#spigot()#SpawnParticle method I decided to use this:
    Code:
    if(ca.selectedTearsEffect.contains(killer.getName())) {
                    killer.spigot().playEffect(playerDeathLocation, Effect.WATERDRIP, 1, 1, 0, 1, 0, 3, 20, 2);
                    world.spigot().playEffect(playerDeathLocation, Effect.WATERDRIP, 1, 1, 0, 1, 0, 3, 20, 2);
                }
                if(ca.selectedExplosionEffect.contains(killer.getName())) {
                    killer.spigot().playEffect(playerDeathLocation, Effect.EXPLOSION_LARGE, 1, 1, 0, 0, 0, 3, 4, 2);
                    world.spigot().playEffect(playerDeathLocation, Effect.EXPLOSION_LARGE, 1, 1, 0, 0, 0, 3, 4, 2);
                }
                if(ca.selectedLavaEffect.contains(killer.getName())) {
                    killer.spigot().playEffect(playerDeathLocation, Effect.LAVA_POP, 1, 1, 0, 0, 0, 3, 20, 2);
                    world.spigot().playEffect(playerDeathLocation, Effect.LAVA_POP, 1, 1, 0, 0, 0, 3, 20, 2);
                }
                if(ca.selectedHeartbrokenEffect.contains(killer.getName())) {
                    killer.spigot().playEffect(playerDeathLocation, Effect.HEART, 1, 1, 0, 1, 0, 3, 20, 3);
                    world.spigot().playEffect(playerDeathLocation, Effect.HEART, 1, 1, 0, 1, 0, 3, 20, 3);
                }
                if(ca.selectedSpellEffect.contains(killer.getName())) {
                    killer.spigot().playEffect(playerDeathLocation, Effect.SPELL, 1, 1, 0, 1, 0, 3, 50, 3);
                    world.spigot().playEffect(playerDeathLocation, Effect.SPELL, 1, 1, 0, 1, 0, 3, 50, 3);
                }
    The problem is however, that it seems like the particles aren't showing up to the killer/killed player. How can I stop this? Please help I am an idiot
     
  2. Offline

    davidclue

    @xpaintall
    We need more than some if statements of your code to help, I don't know why they wouldn't be showing up. Perhaps its because you call the player's location when they die but their location already switches to their respawn point in the respawn screen, try and test this out. If nothing else works use PacketPlayOutWorldParticles and you can choose who sees the particles this way.
     
Thread Status:
Not open for further replies.

Share This Page