@SuppressWarnings("deprecation")
public void selectKit(Player p, int i) {
p.getInventory().clear();
ArrayList<Kit>kits = getKits(p);
if(i <= kits.size()){
Kit k = getKits(p).get(i);
if(k!=null){
p.getInventory().setContents(k.getContents().toArray(new ItemStack[0]));
}
}
p.updateInventory();
}