You put the case #####: to high, make it lower, or in ItemHandler, and Config.java, chage the max item limit.
|
hey so i added some customs now my server is getting spammed
with this
any ideas i dont know whats going on ?Code:Caused by: java.lang.ArrayIndexOutOfBoundsException: 17 at server.world.ItemHandler.loadItemList(ItemHandler.java:381) at server.world.ItemHandler.<init>(ItemHandler.java:33) at server.Server.<clinit>(Server.java:58) Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.ArrayIndexOutOfBoundsException: 17 at server.world.ItemHandler.loadItemList(ItemHandler.java:381) at server.world.ItemHandler.<init>(ItemHandler.java:33) at server.Server.<clinit>(Server.java:58)
rep++
You put the case #####: to high, make it lower, or in ItemHandler, and Config.java, chage the max item limit.
ahh okkkk i thought that but i didnt know how to change it cheers mate rep++
okkk i changed in config.java what do i change in itemhandler still getting it
item.cfg you added something to an item's stats use tab instead of space
ive checked through all that, thats okkk
It's clearly not. Check again, replace all spaces with a tab.
under you will seeCode:public ItemList ItemList[] = new ItemList[Config.ITEM_LIMIT];
Change ##### to what you did in Config.java Good Luck!Code:public void newItemList(int ItemId, String ItemName, String ItemDescription, double ShopValue, double LowAlch, double HighAlch, int Bonuses[]) { // first, search for a free slot int slot = -1; for (int i = 0; i < #####; i++) { if (ItemList[i] == null) { slot = i; break; } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |