add Player.Inventories.CloseByServerStop Function to Config

This commit is contained in:
JaTiTV 2021-12-31 01:34:41 +01:00
parent f545068330
commit 07145453b2
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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");
}
}