mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
add enabled check to economy
This commit is contained in:
parent
761ab51edc
commit
a7c5836f82
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user