Assign econ if #setupEconomy doesn't fail

This commit is contained in:
Teriuihi 2022-07-10 20:32:49 +02:00
parent 92584a2d80
commit d536712814

View File

@ -16,7 +16,7 @@ public class PlayerShops extends JavaPlugin {
@Getter
private static PlayerShops instance;
@Getter
private Economy econ;
private Economy econ = null;
@Getter
private ShopHandler shopHandler;
@ -47,6 +47,7 @@ public class PlayerShops extends JavaPlugin {
if (rsp == null) {
return false;
}
econ = rsp.getProvider();
return true;
}