diff --git a/src/main/java/com/graywolf336/jail/legacy/LegacyManager.java b/src/main/java/com/graywolf336/jail/legacy/LegacyManager.java index 27dc2ff..23bfcad 100644 --- a/src/main/java/com/graywolf336/jail/legacy/LegacyManager.java +++ b/src/main/java/com/graywolf336/jail/legacy/LegacyManager.java @@ -380,6 +380,24 @@ public class LegacyManager { count++; } break; + case PricePerMinute: + if(global.contains(s.getString())) { + c.set(Settings.JAILPAYPRICEPERMINUTE.getPath(), OldSettings.getGlobalInt(global, s)); + pl.debug(Settings.JAILPAYPRICEPERMINUTE.getPath() + " <-- " + s.getString()); + count++; + } + case PriceForInfiniteJail: + if(global.contains(s.getString())) { + c.set(Settings.JAILPAYPRICEINFINITE.getPath(), OldSettings.getGlobalInt(global, s)); + pl.debug(Settings.JAILPAYPRICEINFINITE.getPath() + " <-- " + s.getString()); + count++; + } + case JailPayCurrency: + if(global.contains(s.getString())) { + c.set(Settings.JAILPAYITEM.getPath(), Material.getMaterial(OldSettings.getGlobalInt(global, s)).toString().toLowerCase()); + pl.debug(Settings.JAILPAYPRICEINFINITE.getPath() + " <-- " + s.getString()); + count++; + } default: break; } diff --git a/src/main/java/com/graywolf336/jail/legacy/OldSetting.java b/src/main/java/com/graywolf336/jail/legacy/OldSetting.java index 9bfe8f5..c186a54 100644 --- a/src/main/java/com/graywolf336/jail/legacy/OldSetting.java +++ b/src/main/java/com/graywolf336/jail/legacy/OldSetting.java @@ -50,9 +50,9 @@ public enum OldSetting { PrisonersRecieveMessages("Protections.PlayerRecievesMessages", true), //done //JailPay - PricePerMinute("JailPay.PricePerMinute", 10),//TODO - PriceForInfiniteJail("JailPay.PriceForInfiniteJail", 9999),//TODO - JailPayCurrency("JailPay.Currency", 0),//TODO + PricePerMinute("JailPay.PricePerMinute", 10),//done + PriceForInfiniteJail("JailPay.PriceForInfiniteJail", 9999),//done + JailPayCurrency("JailPay.Currency", 0),//done //Guards GuardHealth("Guards.GuardHealth", 8),//TODO