Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public void repairAll(Player p)
  2. {
  3. for(int i = 0; i <= 36; i++)
  4. {
  5. try
  6. {
  7. p.getInventory().getItem(i).setDurability((short) 0);
  8. p.getInventory().getHelmet().setDurability((short) 0);
  9. p.getInventory().getChestplate().setDurability((short) 0);
  10. p.getInventory().getLeggings().setDurability((short) 0);
  11. p.getInventory().getBoots().setDurability((short) 0);
  12. }
  13. catch(Exception e)
  14. {
  15.  
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement