@Override public List<Quester> getTargets() { List<Quester> questers = new ArrayList<Quester>(); for (Quester q : MineQuest.questerHandler.getQuesters()) { if (q.getPlayer() != null) { if (MineQuest.distance(q.getPlayer().getLocation(), location) < radius) { questers.add(q); } } } return questers; }
@Override public void activate(EventParser eventParser) { super.activate(eventParser); MineQuest.getSQLServer().update(update); }