diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java index fa4616b..5a5a369 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java @@ -43,6 +43,7 @@ public class ConfigCreate { Config.set("BungeeCord.Enable", Bungee, yamlConfiguration); Config.set("BungeeCord.ThisServer", thisServer, yamlConfiguration); + Config.set("Player.Inventories.CloseByServerStop", true, yamlConfiguration); // Config.set("Storage.MySQL.Enable", mySQL, yamlConfiguration); // Config.set("Storage.Type", Storage, yamlConfiguration); diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java index 2250889..f57a2fc 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java @@ -11,6 +11,7 @@ public class SelectLibConfig { public static Boolean UpdateCheckOnJoin; public static Boolean Debug; public static String language; + public static Boolean InventoriesCloseByServerStop; public static void onSelect() { File config = new File(Main.getPath(), "config.yml"); @@ -19,6 +20,7 @@ public class SelectLibConfig { UpdateCheckOnJoin = yamlConfiguration.getBoolean("Plugin.UpdateCheckOnJoin"); Debug = yamlConfiguration.getBoolean("Plugin.Debug"); language = yamlConfiguration.getString("Plugin.language"); + InventoriesCloseByServerStop = yamlConfiguration.getBoolean("Player.Inventories.CloseByServerStop"); } }