mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
last one i hope. renamed "plugin" to "implementor" as the superclass
This commit is contained in:
1 parent
ee7b6dc77c
commit
1e4a1c1b01
2 files changed
+3
-4
No files matched your search
@@ -7,19 +7,18 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class RedisEconomyHook extends VaultEconomyHook {
|
||||
|
||||
|
||||
public RedisEconomyHook(@NotNull HuskHomes implementor) {
|
||||
super(implementor);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean initialize() throws HuskHomesInitializationException {
|
||||
RedisEconomyAPI api = RedisEconomyAPI.getAPI();
|
||||
if (api != null) {
|
||||
economy = api.getCurrencyByName(plugin.getSettings().redis_economy_name);
|
||||
if (economy != null)
|
||||
if (economy != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return super.initialize();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user