Jump to content
  • 0
Sign in to follow this  
bosps

[newbie] editing cfg-files

Question

Hello,

Newbie question. Trying to edit items sold in a shop. I do that by editing the shop.cfg file. It looks like this in txt:

//-----ShopID---ShopName----------------------------------------Sell----Buy-----Item----Amount--Item----Amount--Item----etc
shop = 1 General_Supplies 1 1 1712 100 1540 100 952 etc

When i try to add an item and amount I get errors when starting up the server:

.... Caused by: java.lang.numberFormatException: For input string: "100 1724 100" ...

Can someone help me a little bit? Java sees the numbers as a string (I do use "spaces" in between)?

Regards

EDIT: RESOLVED. Edited by bosps

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Resolved, had to use "tab" instead of "spaces" - whoops..

Share this post


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

×