Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ArrowRemoval {
- public ArrowRemoval(){
- enable();
- }
- public static PriorityQueue<ArrowLandData> q = new PriorityQueue<ArrowLandData>();
- public void enable(){
- plugin.getInstance().getServer().getScheduler().scheduleSyncRepeatingTask(plugin.getInstance(), new Runnable(){
- @Override
- public void run() {
- ArrowLandData a = q.peek();
- if(a.getTime() / 1000 >= 10 && a.getArrow().isValid()){
- a.getArrow();
- q.remove(a);
- }
- }
- }, 100L, 100L);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement