Guest User

B0M PR0V3IT0

a guest
Dec 17th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1.                         new BukkitRunnable(){
  2.                                 for(Player online : Bukkit.getOnlinePlayers()){
  3.                                 Location loc = online.getLocation();
  4.                                 double t = 0;
  5.                                 double r = 2;
  6.                                 public void run(){
  7.                                         t = t + Math.PI/16;
  8.                                         double x = r*cos(t);
  9.                                         double z = r*sin(t);
  10.                                         loc.add(x, y, z);
  11.                                         ParticleEffect.DRIP_WATER.display(loc, 0, 0, 0, 0, 1);
  12.                                         loc.subtract(x, 0, z);
  13.                                 if (t > Math.PI*8){
  14.                                         this.cancel();
  15.                                 }
  16.                                 }
  17.                                 }
  18.                         }.runTaskTimer(plugin, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment