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:
commit
e5e6153806
@ -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