Make the starting Alchemist potions marked Kit Items
This commit is contained in:
parent
d5f56cdb32
commit
d737b41281
@ -68,28 +68,28 @@ public class KitAlchemist extends KitPlayer
|
||||
int level = getUpgradeLevel(player.getUniqueId());
|
||||
if (level == 0)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8194).build());
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8194).build());
|
||||
}
|
||||
else if (level == 1)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8194).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setData((short)8225).build());
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8194).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8225).build());
|
||||
}
|
||||
else if (level == 2)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setData((short)8225).build());
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8225).build());
|
||||
}
|
||||
else if (level == 3)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setData((short)8289).build());
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8289).build());
|
||||
}
|
||||
else if (level == 4)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setData((short)8289).build());
|
||||
ItemStack item = new ItemBuilder(Material.POTION).setData((short)8205).build();
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8289).build());
|
||||
ItemStack item = new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8205).build();
|
||||
PotionMeta pm = (PotionMeta) item.getItemMeta();
|
||||
pm.clearCustomEffects();
|
||||
pm.addCustomEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 20 * 60, 0), true);
|
||||
@ -98,9 +98,9 @@ public class KitAlchemist extends KitPlayer
|
||||
}
|
||||
else if (level == 5)
|
||||
{
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setData((short)8289).build());
|
||||
ItemStack item = new ItemBuilder(Material.POTION).setData((short)8205).build();
|
||||
player.getInventory().setItem(1, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8258).build());
|
||||
player.getInventory().setItem(2, new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8289).build());
|
||||
ItemStack item = new ItemBuilder(Material.POTION).setLore(C.cGold + "Kit Item").setData((short)8205).build();
|
||||
PotionMeta pm = (PotionMeta) item.getItemMeta();
|
||||
pm.clearCustomEffects();
|
||||
pm.addCustomEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 20 * 130, 0), true);
|
||||
|
Loading…
Reference in New Issue
Block a user