Messages yml help

Discussion in 'Plugin Development' started by zurg200, Nov 13, 2014.

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

    zurg200

    I am trying to make a messages.yml and it's not working.. Like it doesn't load.. I have this on my onEnable()

    File file = new File(getDataFolder(), "messages.yml");
    if(!file.exists()) saveDefaultConfig();

    But it doesn't load and I have it in my folder..
     
  2. Offline

    Skionz

    doesn't saveDefaultConfig() create a config.yml? use file.createNewFile();
     
  3. Offline

    zurg200

    Yes.. But it won't save it. Just loads it and it's blank.. And I put in stuff into it..
     
  4. Offline

    mythbusterma

    zurg200

    Simply use saveDefaultConfig(), if you already have a config on your test server, make sure to delete it.
     
  5. Offline

    Skionz

    So do you want to create a config.yml or a messages.yml?
     
  6. Offline

    zurg200

    I'm trying to make a messages.yml my config is fine and I can make those!
     
  7. Offline

    SuperOriginal

    Use the YamlConfiguration class to load the configuration for your messages.yml, it basically provides all the methods of the config.yml, and applies it to a custom file.
     
Thread Status:
Not open for further replies.

Share This Page