Fixed payitem bug

This commit is contained in:
Per Henrik Johansen 2015-10-25 12:41:02 +01:00
parent ae39ac2cfe
commit 9f2e1d9786

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());