package io.github.aquerr.eaglefactions.logic;

import io.github.aquerr.eaglefactions.config.ConfigAccess;
import io.github.aquerr.eaglefactions.config.IConfig;
import io.github.aquerr.eaglefactions.config.MainConfig;
import ninja.leaping.configurate.ConfigurationNode;

public class MainLogic
{
    private static IConfig mainConfig = MainConfig.getConfig();

    public static boolean getAllianceFriendlyFire()
    {
        ConfigurationNode friendlyFireNode = ConfigAccess.getConfig(mainConfig).getNode("eaglefactions", "friendlyFire", "alliance");

        Boolean friendlyFire = friendlyFireNode.getBoolean();

        return friendlyFire;
    }

    public static int getPlayerMaxPower()
    {
        ConfigurationNode maxPowerNode = ConfigAccess.getConfig(mainConfig).getNode("eaglefactions", "power", "maxpower");

        int maxPower = maxPowerNode.getInt();

        return maxPower;
    }
}

@@ -894,11 +894,277 @@
 r;%0A    %7D
+%0A%0A    public static int getStartingPower()%0A    %7B%0A        ConfigurationNode startingPowerNode = ConfigAccess.getConfig(mainConfig).getNode(%22eaglefactions%22, %22power%22, %22startpower%22);%0A%0A        int startPower = startingPowerNode.getInt();%0A%0A        return startPower;%0A    %7D
 %0A%7D%0A

Add function for getting starting power