Assign econ if #setupEconomy doesn't fail
This commit is contained in:
parent
92584a2d80
commit
d536712814
|
|
@ -16,7 +16,7 @@ public class PlayerShops extends JavaPlugin {
|
||||||
@Getter
|
@Getter
|
||||||
private static PlayerShops instance;
|
private static PlayerShops instance;
|
||||||
@Getter
|
@Getter
|
||||||
private Economy econ;
|
private Economy econ = null;
|
||||||
@Getter
|
@Getter
|
||||||
private ShopHandler shopHandler;
|
private ShopHandler shopHandler;
|
||||||
|
|
||||||
|
|
@ -47,6 +47,7 @@ public class PlayerShops extends JavaPlugin {
|
||||||
if (rsp == null) {
|
if (rsp == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
econ = rsp.getProvider();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user