Jump to content
  • 0
Sign in to follow this  

HELP! Shops. adding shops, items, please help...


I am not a java developer by any means. Web developing is all me, however, my developer is on break so I am adding new items into shop/new shops.

I followed this tutorial:

Entered this into shops.cfg:
[CODE]shop = 1 Armor_Shop 1 1 1158 250 1120 250 1106 250 1070 250 1084 205[/CODE]

This inside ActionHandler under any case:
[CODE]case 2538:

[CODE]And, this is the error I am getting.. I do not know why.
Loaded 5113 npc drops for 331 npcs in 111ms.
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at server.world.ShopHandler.loadShops(ShopHandler.java:145)
at server.world.ShopHandler.<init>(ShopHandler.java:45)
at server.Server.<clinit>(Server.java:76)[/CODE]

1st error shows this once I click it:
[CODE]ShopSModifier[ShopID] = Integer.parseInt(token3[2]);[/CODE] (Never added this)



[CODE]public static ShopHandler shopHandler = new ShopHandler();[/CODE]

I have not touched ANY of these files, and, before this, the server was online with no errors. What the fuck did I do wrong... :(

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
did you use tabs instead of spaces when entering shop items/amounts ?

Share this post

Link to post
Share on other sites
Sign in to follow this