What Am I Doing Wrong To Make Custom YML Files?

Discussion in 'Plugin Development' started by xboxnolifes, Jul 29, 2012.

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

    xboxnolifes

    I'm trying to make a YML called "completed.yml" so I can store players' names and an integer between 1 and 5 (for a later stage in the plugin)
    I have followed every bit of help I could find, and this is the best I could get it without getting any errors.
    I plead someone to please review my code and tell me what I did wrong, and how to fix it. I have spent WAY too long trying to just make the YML file.
    Info:
    In the onEnable(), reloadCustomConfig() doesn't execute even though it should, as it is placed right in the onEnable().
    Ignore everything below line: 129.​
    Code:
    Thank you in advanced!
     
  2. Offline

    Jogy34

    Did you look at this?
     
  3. Offline

    xboxnolifes

    Only for about 5 hours straight. I have similar methods in my code.
     
  4. Offline

    Jogy34

    ok. Also your reloadCustomConfig method is in an if statement. Did you make sure that you don't have an economy plugin on the server you are testing it on?
     
  5. Offline

    xboxnolifes

    Part of it is not an if statement. I even added a test info log @ the beginning of it to see f it executes, but no dice.
     
  6. Offline

    Jogy34

    Not that the part where you actually call the method is in an if statement
    Code:
     if (!setupEconomy()) {
          this.logger.severe("CANNOT SETUP VAULT ECONOMY!");
         getServer().getPluginManager().registerEvents(this, this);                   
         reloadCustomConfig();
    }
     
  7. Offline

    xboxnolifes

    Hmm.... I'm pretty sue it didn't work before I moved it there, but nice catch.

    I'll try it.

    Thank you! I got it to work after fiddling with it a bit.

    Now, I just need to get my "onJoin" event working; however, I'm sure I could find a previously posted thread on that.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
Thread Status:
Not open for further replies.

Share This Page