Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void repairAll(Player p)
- {
- for(int i = 0; i <= 36; i++)
- {
- try
- {
- p.getInventory().getItem(i).setDurability((short) 0);
- p.getInventory().getHelmet().setDurability((short) 0);
- p.getInventory().getChestplate().setDurability((short) 0);
- p.getInventory().getLeggings().setDurability((short) 0);
- p.getInventory().getBoots().setDurability((short) 0);
- }
- catch(Exception e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement