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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user