Advertisement
Guest User

Create Fixed Effect Without Saving

a guest
May 4th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. Location location = null; // your location
  2. PPlayer pplayer = PlayerParticlesAPI.getInstance().getPPlayer(Bukkit.getConsoleSender());
  3. ParticlePair particlePair = new ParticlePair(pplayer.getUniqueId(), 1 /* this is always 1 */, ParticleEffect.DUST, ParticleStyle.ORBIT, null, null, OrdinaryColor.RAINBOW, null);
  4. FixedParticleEffect fixedEffect = new FixedParticleEffect(pplayer.getUniqueId(), pplayer.getNextFixedEffectId(), location, particlePair);
  5. pplayer.addFixedEffect(fixedEffect); // added to the pplayer but not saved to the database, will be reset when the server reloads/restarts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement