mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Add getters to bukkit econ handler.
This commit is contained in:
parent
94df643e6e
commit
d8e7c9805b
@ -17,6 +17,16 @@ public class BukkitEconHandler extends EconHandler {
|
|||||||
private Economy econ;
|
private Economy econ;
|
||||||
private Permission perms;
|
private Permission perms;
|
||||||
|
|
||||||
|
public Economy getEconomy() {
|
||||||
|
init();
|
||||||
|
return econ;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Permission getPermissions() {
|
||||||
|
init();
|
||||||
|
return perms;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean init() {
|
public boolean init() {
|
||||||
if (econ == null || perms == null) {
|
if (econ == null || perms == null) {
|
||||||
setupPermissions();
|
setupPermissions();
|
||||||
|
Loading…
Reference in New Issue
Block a user