MilkBowl / VaultAPI

API Component of Vault
GNU Lesser General Public License v3.0
273 stars 109 forks source link

I can't make plugin with vault. #142

Closed Dotmazy closed 2 years ago

Dotmazy commented 2 years ago

I try to copy all the example code. private boolean setupEconomy() { if (getServer().getPluginManager().getPlugin("Vault") == null) { return false; } RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class); if (rsp == null) { return false; } econ = rsp.getProvider(); return econ != null; } getServer().getPluginManager().getPlugin("Vault") return true but rsp return null.

Geolykt commented 2 years ago

Do you have an economy plugin installed? If not, then either you need to install one on the server or code it yourself

cerealcable commented 2 years ago

Closing this issue as no response from the issue creator. If you want further support please respond in a timely manner.