mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 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 class RedisEconomyHook extends VaultEconomyHook {
|
||||||
|
|
||||||
|
|
||||||
public RedisEconomyHook(@NotNull HuskHomes implementor) {
|
public RedisEconomyHook(@NotNull HuskHomes implementor) {
|
||||||
super(implementor);
|
super(implementor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean initialize() throws HuskHomesInitializationException {
|
public boolean initialize() throws HuskHomesInitializationException {
|
||||||
RedisEconomyAPI api = RedisEconomyAPI.getAPI();
|
RedisEconomyAPI api = RedisEconomyAPI.getAPI();
|
||||||
if (api != null) {
|
if (api != null) {
|
||||||
economy = api.getCurrencyByName(plugin.getSettings().redis_economy_name);
|
economy = api.getCurrencyByName(plugin.getSettings().redis_economy_name);
|
||||||
if (economy != null)
|
if (economy != null) {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return super.initialize();
|
return super.initialize();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ public class Settings {
|
|||||||
public boolean economy = false;
|
public boolean economy = false;
|
||||||
|
|
||||||
@YamlComment("Use this currency for payments (works only with RedisEconomy), defaults to Vault currency")
|
@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";
|
public String redis_economy_name = "vault";
|
||||||
|
|
||||||
@YamlKey("economy.free_home_slots")
|
@YamlKey("economy.free_home_slots")
|
||||||
|
|||||||
Reference in new issue
Block a user