Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Item equipmentAxe = getContext().getEquipment().getItemInSlot(EquipmentSlot.WEAPON.getSlot());
  2.  
  3. if(equipmentAxe == null || !equipmentAxe.getName().contains("axe")){
  4. getContext().getBank().withdraw(new Filter<Item>() {
  5. @Override
  6. public boolean match(Item item) {
  7. return item.getName().contains("axe");
  8. }
  9. },1);
  10. }else{
  11. getContext().getBank().close();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement