Solved CHECK PLAYER AND STRING IN CONFIG.YML

Discussion in 'Spigot Plugin Development' started by DevPazzo, Feb 14, 2020.

  1. edit
     
    #1 DevPazzo, Feb 14, 2020
    Last edited: Feb 15, 2020
  2. do:
    if (Main.getInstance().getConfig().getString("upgrade." + p.getName()).equals("healthboost")) {
    // do something
    }
     
  3. not work
     
  4. Are you saving the config after setting it up?

    Post error here