Advertisement
Guest User

Untitled

a guest
Aug 9th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class ArrowRemoval {
  2.  
  3. public ArrowRemoval(){
  4. enable();
  5. }
  6.  
  7. public static PriorityQueue<ArrowLandData> q = new PriorityQueue<ArrowLandData>();
  8.  
  9. public void enable(){
  10. Plugin.getInstance().getServer().getScheduler().scheduleSyncRepeatingTask(Plugin.getInstance(), new Runnable(){
  11.  
  12. @Override
  13. public void run() {
  14. if(q.peek().getArrow().isValid())q.peek().getArrow().remove();
  15. }
  16. }, 100L, 100L);
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement