Convert the jailpay settings over.
This commit is contained in:
parent
b3033913c7
commit
42d0e7983f
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user