How do I set up a config.yml for my plugin?

Discussion in 'Plugin Development' started by DragsZombies, Sep 29, 2012.

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

    DragsZombies

    I'm trying to make my plugin have settings to change the amount of damage a player takes, and like what time of day they take that damage, and how much damage they take every second or minute.

    I really need to know how to do this, because I'm updating it to 1.3.2

    Thanks!
     
  2. Offline

    MrFigg

  3. Offline

    filurp

    Code:
    if(!file.exists()) {
                this.getLogger().info("Generating config.yml...");
               
                this.getConfig().addDefault("Message", "This is my message!");
                this.getConfig().options().copyDefaults(true);
                this.saveConfig();
     
Thread Status:
Not open for further replies.

Share This Page