Solved Weird Vault error?

Discussion in 'Plugin Development' started by viper_monster, Jul 24, 2014.

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

    viper_monster

    For some weird reason my plugin can't find the Economy class from Vault, this code stops before "3" gets printed.

    Code:java
    1. private boolean setupEconomy() {
    2. System.err.println("1");
    3. if (!getServer().getPluginManager().isPluginEnabled("Vault")) {
    4. return false;
    5. }
    6. System.err.println("2");
    7. RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
    8. if (rsp == null) {
    9. return false;
    10. }
    11. System.err.println("3");
    12. economy = rsp.getProvider();
    13. return economy != null;
    14. }


    I have the latest version of CraftBukkit and Vault installed.
     
  2. Offline

    xTigerRebornx

    viper_monster You need an economy plugin installed as well. Vault doesn't come with a pre-installed economy.
     
    viper_monster likes this.
  3. Offline

    viper_monster

    xTigerRebornx Oh my... I completely forgot about it... Thanks :) hah
     
Thread Status:
Not open for further replies.

Share This Page