Convert the jailpay settings over.

This commit is contained in:
graywolf336 2014-05-02 01:43:30 -05:00
parent b3033913c7
commit 42d0e7983f
2 changed files with 21 additions and 3 deletions

View File

@ -380,6 +380,24 @@ public class LegacyManager {
count++; count++;
} }
break; 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: default:
break; break;
} }

View File

@ -50,9 +50,9 @@ public enum OldSetting {
PrisonersRecieveMessages("Protections.PlayerRecievesMessages", true), //done PrisonersRecieveMessages("Protections.PlayerRecievesMessages", true), //done
//JailPay //JailPay
PricePerMinute("JailPay.PricePerMinute", 10),//TODO PricePerMinute("JailPay.PricePerMinute", 10),//done
PriceForInfiniteJail("JailPay.PriceForInfiniteJail", 9999),//TODO PriceForInfiniteJail("JailPay.PriceForInfiniteJail", 9999),//done
JailPayCurrency("JailPay.Currency", 0),//TODO JailPayCurrency("JailPay.Currency", 0),//done
//Guards //Guards
GuardHealth("Guards.GuardHealth", 8),//TODO GuardHealth("Guards.GuardHealth", 8),//TODO