public static boolean addHead(Player player, String skullOwner, int quantity) { PlayerInventory inv = player.getInventory(); int firstEmpty = inv.firstEmpty(); if (firstEmpty == -1) { return false; } else { inv.setItem(firstEmpty, Tools.Skull(skullOwner, quantity)); return true; } }
public String getDisplayName() { return Tools.format(Lang.getString("HEAD_" + name())); }