Solved Something doesn't like my config setting

Discussion in 'Plugin Development' started by bdubz4552, May 9, 2014.

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

    bdubz4552

    This is the first config setting out of many that has had an issue with reading. I use
    Code:java
    1. if (this.getConfig().getString("configVersion") != "v3.0")
    to check the setting, which is
    Code:
    configVersion: "v3.0"
    but for some reason, this if statement is behaving as though the config value really isn't "v3.0". Even when I had the logger output in console what "configVersion" was, it said it was "v3.0", so I really don't know what the heck is going on here.
     
  2. bdubz4552
    Use .equals() and make sure you have single quotes ( ' ) surrounding the string value in the config.
     
Thread Status:
Not open for further replies.

Share This Page