Version 2.1 & Config Updater

Also Implements #229
This commit is contained in:
Sn0wStorm
2020-04-08 13:12:33 +02:00
parent 0e5893472b
commit 44310e0e36
18 changed files with 297 additions and 14 deletions
+5 -1
View File
@@ -39,7 +39,7 @@ import java.util.Map;
public class BConfig {
public static final String configVersion = "2.0";
public static final String configVersion = "2.1";
public static boolean updateCheck;
public static CommandSender reloader;
@@ -59,6 +59,9 @@ public class BConfig {
// Barrel
public static boolean openEverywhere;
// Cauldron
public static boolean useOffhandForCauldron;
//BPlayer
public static Map<Material, Integer> drainItems = new HashMap<>();// DrainItem Material and Strength
public static Material pukeItem;
@@ -237,6 +240,7 @@ public class BConfig {
enableEncode = config.getBoolean("enableEncode", false);
openEverywhere = config.getBoolean("openLargeBarrelEverywhere", false);
MCBarrel.maxBrews = config.getInt("maxBrewsInMCBarrels", 6);
useOffhandForCauldron = config.getBoolean("useOffhandForCauldron", false);
Brew.loadSeed(config, new File(P.p.getDataFolder(), "config.yml"));