Getting long values from a config

Discussion in 'Plugin Development' started by Sir_Speshkitty, Oct 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Sir_Speshkitty

    I'm storing values in a config involving times (System.currentTimeMillis() mostly), but config.getInt(p.getDisplayName() + ".startTime") overflows :/
    I'm getting around the issue by dividing any calls to System.currentTimeMillis() by 1000, but this is less than ideal.
    Is there any way to pull a long from the file or do I have to keep working around getInt()?
     
  2. Offline

    wwsean08

    you could save it as a string and then convert it to a double
     
Thread Status:
Not open for further replies.

Share This Page