Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Area[] banks = null;
- WebWalkEvent e = new WebWalkEvent(banks);
- PathPreferenceProfile ppf = new PathPreferenceProfile();
- ppf.setAllowTeleports(true);
- e.setPathPreferenceProfile(ppf);
- Position pos = e.getDestination();
- if (pos != null) {
- for (Area bank : banks) {
- if (bank.contains(pos)) {
- log("Closest bank: " + bank);
- }
- }
- } else {
- log("No bank can be reached");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement