If LOLO is true work

Discussion in 'Plugin Development' started by NickDEV, Nov 26, 2015.

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

    NickDEV

  2. Offline

    Zombie_Striker

    if(config.contains("LOLO") && config,getBoolean("LOLO")){
    //do stuff
    }
     
  3. Offline

    teej107

    getBoolean will return false if the path is not in the config. You don't need to check if the config has it.
     
    Zombie_Striker likes this.
  4. Offline

    Scimiguy

    @teej107
    If the path isn't in the config, then you could just assume that LOLO is set to false ;)
     
  5. Offline

    teej107

    Exactly and just let Bukkit handle it because it does.
     
Thread Status:
Not open for further replies.

Share This Page