Solved Setup Economy Vault

Discussion in 'Plugin Development' started by mttprvst13, Jun 15, 2015.

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

    mttprvst13

    So I am making a plugin that runs on Vault. But I ran into a problem. I am trying to do the setupEconomy() thing and I have it setup in my onEnable like this:
    Code:
            setupEconomy();
            if (setupEconomy()) {
                log.info("Economy was successfully setup.");
            } else {
                log.warning("Unable to setup economy.");
            }
    And in the terminal all it says is:
    Code:
    [08:42:54 INFO]: [TrickyTrivia] Enabling TrickyTrivia v1.0
    [08:42:54 WARN]: [TrickyTrivia] Unable to setup economy.
    [08:42:54 INFO]: [TrickyTrivia] Successfully initialized
    
    And in my plugin.yml I have the depend:
    Code:
    depend: [Vault]
     
  2. Offline

    Lolmewn

    Why do setupEconomy() and then run it again? Only once is needed.
    Also, I'm going to ask the obvious here: Do you have an economy plugin installed?
     
    Konato_K likes this.
  3. Offline

    mttprvst13

    Well from what I believe calling the first time actually sets it up and what not. The second time checks if it is all setup. Also... I have vault?... Wait one second ;D... Yep adding an economy plugin fixed it :p thx!
     
  4. Offline

    Lolmewn

    I had exactly the same issue a while back ;)
    PS: Do mark the thread as fixed ^^
     
Thread Status:
Not open for further replies.

Share This Page