From 94bac07727f37d829c46745e808263ffe8639a61 Mon Sep 17 00:00:00 2001 From: AppleDash Date: Wed, 14 Jun 2017 19:39:36 -0400 Subject: [PATCH] Make SignShop actually compile. --- .../org/appledash/saneeconomysignshop/SaneEconomySignShop.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SaneEconomySignShop/src/main/java/org/appledash/saneeconomysignshop/SaneEconomySignShop.java b/SaneEconomySignShop/src/main/java/org/appledash/saneeconomysignshop/SaneEconomySignShop.java index d03e574..05e6ad9 100644 --- a/SaneEconomySignShop/src/main/java/org/appledash/saneeconomysignshop/SaneEconomySignShop.java +++ b/SaneEconomySignShop/src/main/java/org/appledash/saneeconomysignshop/SaneEconomySignShop.java @@ -13,6 +13,7 @@ import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugin; import java.io.File; +import java.io.InputStreamReader; /** * Created by appledash on 10/2/16. @@ -40,7 +41,7 @@ public class SaneEconomySignShop extends JavaPlugin { saveDefaultConfig(); - limitManager.loadLimits(YamlConfiguration.loadConfiguration(getClass().getResourceAsStream("/limits.yml"))); // Always load from JAR + limitManager.loadLimits(YamlConfiguration.loadConfiguration(new InputStreamReader(getClass().getResourceAsStream("/limits.yml")))); // Always load from JAR signShopManager.loadSignShops(); getServer().getScheduler().scheduleSyncRepeatingTask(this, limitManager::incrementLimitsHourly, 0, 20 * 60 * 60);