Iterate through the player's line of sight and send particle packets, or if you actually want them to shoot set the amount to 0 and the offset values will turn into a vector.
@Skionz @nikmanG I'm already using player.spigot().playeffect() with all the parameters but I don't know how to manipulate the vectors to shoot it in a stream.
You could Potentially make the shooter shoot a projectile making it invisible with packets. TheN in a runnable while the projectile is flying play the effect at its location.
@DarkSeraphim how do you hide it? I asked you on another thread and I reached a point where I used the PacketWrapper library but I'm still at a loss on what to do as when I run it, it still returns errors.
Why is it that when I google something I tend to find the answer? https://bukkit.org/threads/tutorial-how-to-make-particle-trails-for-wands-spells.215162/ I mean am I just lucky or are people too lazy to look through the first page of the results...
@nikmanG I think you might just be lucky. I googled for quite a bit before posting here and couldn't find any relevant answer.
I would only play it for the players that I want to play it for. Player.Spigot#playEffect(...) is player specific .
I'll throw out there that EffectLib makes this kind of thing much easier (use LineEffect or a stretched ConeEffect), if you're willing to use a lib.