Closed Dotmazy closed 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
Closing this issue as no response from the issue creator. If you want further support please respond in a timely manner.
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.