How do I disable the firework when it is launched I'm creating a battle system when the player wins, spawn fireworks, but the other players are seeing the fires and I want to disable that, help please
@y4sk Show a screenshot of the effect that you want to disable because I still have no idea what you want to do.
have a playerinteractevent, check if its a firework, check if the player isn't the winner (probably in arraylist), cancel the event Edit: I assume you probably edited the question so now this probably wouldn't work since they are not spawning it
@y4sk You have two options here, Option 1: Play the sound and spawn the particles just for the player who won (Not spawning any firework entity just the sounds and particles so it will be a little difficult). Option 2: Spawn the fireworks and use NMS to send an entity destroy packet to everyone except the winner (I am not sure if this will show everyone the particles still you will need to test) however NMS is version-specific so it kind of will be annoying.