add enabled check to economy

This commit is contained in:
jascotty2 2019-08-20 13:02:17 -05:00
parent 761ab51edc
commit a7c5836f82

View File

@ -33,6 +33,14 @@ public class EconomyManager {
.findFirst().orElse(null);
}
public static boolean isEnabled(String name) {
return getEconomy(name) != null;
}
public static boolean isEnabled() {
return !registeredEconomies.isEmpty();
}
public static Set<Economy> getRegisteredEconomies() {
return Collections.unmodifiableSet(registeredEconomies);
}