Illegal Argument

Discussion in 'Plugin Development' started by baugh70, Oct 27, 2013.

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

    baugh70

    Hey guys,

    I am coding a plugin for a friend and I can't seem to figure out why I am getting an error about the YamlDatabase and the arguements, so if any of you could help it would be greatly appreciated!

    Warning: Format is messy (needed to get it done quickly)
    Error: http://pastebin.com/KX2ZmQxX
    Code: http://pastebin.com/RfBpHfsX

    Conifg: http://pastebin.com/8xceMsi5

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  2. Offline

    1Rogue

    Can you re-paste the error? Also, don't use "getConfig()" outside of a method body.
     
  3. Offline

    baugh70

    http://pastebin.com/acNmdcGQ

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  4. Offline

    achap1989

    baugh70 your Config file is empty, your code is trying to call from your ranks, as well as your rank money. Well, when it calls these fields they show as blank, which is also null. Try filling your fields out with some temporary data. This may fix your issue.
     
Thread Status:
Not open for further replies.

Share This Page