Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package Monture.api;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.Location;
  5. import org.bukkit.entity.Player;
  6. import org.bukkit.scheduler.BukkitRunnable;
  7.  
  8. import Monture.main;
  9.  
  10. public class Runnable extends BukkitRunnable {
  11. public ParticleEffect pa;
  12. static int task;
  13. @SuppressWarnings("deprecation")
  14. @Override
  15. public void run() {
  16. for (Player p : Bukkit.getOnlinePlayers()) {
  17. if(main.getInstance().Coeur.contains(p)) {
  18. Location l = p.getPlayer().getEyeLocation().add(0, 1, 0);
  19. task = Bukkit.getScheduler().scheduleAsyncRepeatingTask(main.getInstance(), new Runnable() {
  20.  
  21.  
  22. @SuppressWarnings("static-access")
  23. @Override
  24. public void run() {
  25. pa.HEART.display(0, 0, 0, 0, 1, l, 80);
  26. }
  27. },20 ,20);
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement