Solved Help with getConfig()

Discussion in 'Plugin Development' started by Goksi, Apr 6, 2017.

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

    Goksi

    Hi guys i just want to know is it possible to getConfig in non string.I do not know how to explain it in english(its not my motherlanguage) but i want to do something like getConfig().getString("string") in non string :D
     
  2. Offline

    yPedx

    @Goksi
    Do you want to catch a value instead of a string?
     
  3. Offline

    Goksi

    Yeah exactly
     
  4. Offline

    yPedx

    @Goksi
    Code:
    plugin.getConfig().getInt("path.to.int");
    So if I had:
    Code:
    path:
      to:
        int: 1
    I would get; 1
    Is this what you're looking for?
     
  5. Offline

    ClassifiedDev

    You could do the same with a Boolean if your trying to get a true or false value.
    Code:
    getConfig().getBoolean("path.to.boolean");
    Code:
    path:
      to:
        boolean: false
     
  6. Offline

    Goksi

    yeah thats it, thanks alot :)
     
Thread Status:
Not open for further replies.

Share This Page