Merge pull request #98 from perhenrik/master

Fixed the paying with item not working due to uppercasing the wrong piece.
This commit is contained in:
Bradley Hilton 2015-10-29 12:42:10 -05:00
commit e5e6153806

View File

@ -18,8 +18,12 @@ public class JailPayManager implements IJailPayManager {
private boolean infinite, timed; private boolean infinite, timed;
protected JailPayManager(JailMain plugin) { protected JailPayManager(JailMain plugin) {
this.item = Material.getMaterial(plugin.getConfig().getString(Settings.JAILPAYITEM.getPath().toUpperCase())); this.item = Material.getMaterial(plugin.getConfig().getString(Settings.JAILPAYITEM.getPath()).toUpperCase());
if(this.item == null) this.item = Material.AIR;
if(this.item == null) {
plugin.getLogger().warning("Pay item is null, setting to air");
this.item = Material.AIR;
}
this.minteCost = plugin.getConfig().getDouble(Settings.JAILPAYPRICEPERMINUTE.getPath()); this.minteCost = plugin.getConfig().getDouble(Settings.JAILPAYPRICEPERMINUTE.getPath());