mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-09-28 05:17:52 +02:00
Fixed the shop.yml saving with no contents
This commit is contained in:
parent
775976d69f
commit
21c37e1d0b
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user