Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Item equipmentAxe = getContext().getEquipment().getItemInSlot(EquipmentSlot.WEAPON.getSlot());
- if(equipmentAxe == null || !equipmentAxe.getName().contains("axe")){
- getContext().getBank().withdraw(new Filter<Item>() {
- @Override
- public boolean match(Item item) {
- return item.getName().contains("axe");
- }
- },1);
- }else{
- getContext().getBank().close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement