Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new BukkitRunnable(){
- for(Player online : Bukkit.getOnlinePlayers()){
- Location loc = online.getLocation();
- double t = 0;
- double r = 2;
- public void run(){
- t = t + Math.PI/16;
- double x = r*cos(t);
- double z = r*sin(t);
- loc.add(x, y, z);
- ParticleEffect.DRIP_WATER.display(loc, 0, 0, 0, 0, 1);
- loc.subtract(x, 0, z);
- if (t > Math.PI*8){
- this.cancel();
- }
- }
- }
- }.runTaskTimer(plugin, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment