Solved Configuration Disable or Enable a features

Discussion in 'Spigot Plugin Development' started by ryu, Jun 16, 2016.

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

    ryu

    Hello, I was wondering if anyone knew how I would be able to enable and disable a feature from the plugin through the config.yml?
     
  2. Code (Java):
    if (config boolean) {
        //do feature
    } else {
        //don't do feature
    }
     
  3. you could create a boolean entry inside your config YAML file and have the plugin check it's true or not each time your plugin enables.
     
  4. Don't forget to set to solved please
     
    • Friendly Friendly x 1
  5. ryu

    ryu

    Thanks again :p
     
Thread Status:
Not open for further replies.