Edit : NVM just failed. I'll recheck
Edit 2 : Make sure ItemAssistant.java is in items directory?
Edit 3 : This getItemName2 is really not useful in fact its a copy past of getItemName ( You could just delete that part and remove all the ' 2 ' off PublicEvent.
Edit 4 : Maybe it's not reading it right cause it's a duplicate case else its the import
Import ItemAssistant.java in your PublicEvent file
Be sure to have this in ItemAssistant:
Code:
public static String getItemName2(int ItemID) {
for (int i = 0; i < Config.ITEM_LIMIT; i++) {
if (Server.itemHandler.ItemList[i] != null) {
if (Server.itemHandler.ItemList[i].itemId == ItemID) {
return Server.itemHandler.ItemList[i].itemName;
}
}
}
return "Unarmed";
}