Fixed payitem bug
This commit is contained in:
parent
ae39ac2cfe
commit
9f2e1d9786
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user