public Battleground(BattlegroundHandler handler, String name) {
        this.handler = handler;
        this.name = name;
        this.state = BattlegroundState.MAINTENANCE;

        try {
            if (getConfigurationSection().contains("spawns")) {
            for (String key : getConfigurationSection().getConfigurationSection("spawns").getKeys(false)) {
                spawnLocations.put(new BlockVector(
                        getConfigurationSection().getConfigurationSection("spawns").getConfigurationSection(key).getDouble("x"),
                        getConfigurationSection().getConfigurationSection("spawns").getConfigurationSection(key).getDouble("y"),
                        getConfigurationSection().getConfigurationSection("spawns").getConfigurationSection(key).getDouble("z")
                ), null);
            }
        }

        if (getConfigurationSection().contains("chests")) {
            for (String key : getConfigurationSection().getConfigurationSection("chests").getKeys(false)) {//TODO: something went wrong here
                chests.put(new BlockVector(
                        getConfigurationSection().getConfigurationSection("chests").getConfigurationSection(key).getDouble("x"),
                        getConfigurationSection().getConfigurationSection("chests").getConfigurationSection(key).getDouble("y"),
                        getConfigurationSection().getConfigurationSection("chests").getConfigurationSection(key).getDouble("z")
                ), null);
            }
        }

            if (getConfigurationSection().isSet("maxPlayers"))
                this.maxPlayers = getConfigurationSection().getInt("maxPlayers");
            if (getConfigurationSection().isSet("minPlayers"))
                this.minPlayers = getConfigurationSection().getInt("minPlayers");

            handler.addBattleground(this);
        } catch (Exception exception) {
            handler.plugin.getLogger().info("=============================");
            handler.plugin.getLogger().info("Something went wrong loading the battleground " + name + ". There's probably something wrong with the config. We have unloaded it to prevent it from causing any more issues.");
            handler.plugin.getLogger().info("===========EXCEPTION============");
            exception.printStackTrace();
            handler.plugin.getLogger().info("=============================");

        }


    }