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() {
- if(q.peek().getArrow().isValid())q.peek().getArrow().remove();
- }
- }, 100L, 100L);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement