From 07145453b2d0e14e5124e564408e6c603d24f6d4 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:34:41 +0100 Subject: [PATCH] add Player.Inventories.CloseByServerStop Function to Config --- .../java/net/t2code/lib/Spigot/system/config/ConfigCreate.java | 1 + .../net/t2code/lib/Spigot/system/config/SelectLibConfig.java | 2 ++ 2 files changed, 3 insertions(+) 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"); } }