From 42d0e7983fd587c2092a6ed64b2f3fcd47b03c14 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 2 May 2014 01:43:30 -0500 Subject: [PATCH] Convert the jailpay settings over. --- .../graywolf336/jail/legacy/LegacyManager.java | 18 ++++++++++++++++++ .../graywolf336/jail/legacy/OldSetting.java | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) 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