mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Add getters to bukkit econ handler.
This commit is contained in:
parent
94df643e6e
commit
d8e7c9805b
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue