last one i hope. renamed "plugin" to "implementor" as the superclass

This commit is contained in:
Emibergo02 committed 2022-11-08 16:57:00 +01:00
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();
}
@@ -216,7 +216,7 @@ public class Settings {
public boolean economy = false;
@YamlComment("Use this currency for payments (works only with RedisEconomy), defaults to Vault currency")
@YamlKey("economy.currency_name")
@YamlKey("economy.redis_economy_name")
public String redis_economy_name = "vault";
@YamlKey("economy.free_home_slots")