Fixed the shop.yml saving with no contents

This commit is contained in:
RandomHashTags 2018-10-31 19:34:24 -05:00 committed by RandomHashTags
parent 775976d69f
commit 21c37e1d0b

View File

@ -34,9 +34,8 @@ public class GenbucketItem {
public GenbucketItem(String shopName, String key) { public GenbucketItem(String shopName, String key) {
//
FileConfiguration config = EpicBuckets.getInstance().shopFile; FileConfiguration config = EpicBuckets.getInstance().shopFile;
this.itemName = ChatUtil.colorString(config.getString("shops." + shopName + "." + key + ".name")); this.itemName = ChatUtil.colorString(config.getString("shops." + shopName + "." + key + ".name"));
this.price = config.getInt("shops." + shopName + "." + key + ".price"); this.price = config.getInt("shops." + shopName + "." + key + ".price");