package com.erigitic.config;

/**
 * Created by Erigitic on 5/2/2015.
 */
public class AccountManager {

    /**
     * Default Constructor so we can access this class from elsewhere
     */
    public AccountManager() { }

    /**
     * Setup the config file that will contain the user accounts. These accounts will contain the users money amount.
     */
    public void setupConfig() {

    }
}

@@ -27,81 +27,646 @@
 g;%0A%0A
-/**%0A * Created by Erigitic on 5/2/2015.%0A */%0Apublic class AccountManager %7B
+import com.google.inject.Inject;%0Aimport ninja.leaping.configurate.commented.CommentedConfigurationNode;%0Aimport ninja.leaping.configurate.loader.ConfigurationLoader;%0Aimport org.slf4j.Logger;%0Aimport org.spongepowered.api.service.config.DefaultConfig;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0A/**%0A * Created by Erigitic on 5/2/2015.%0A */%0Apublic class AccountManager %7B%0A%0A    @Inject%0A    private Logger logger;%0A%0A    //Load the default config so we grab the parent directory.%0A%0A    private File accountsConfig;%0A%0A    @Inject%0A    @DefaultConfig(sharedRoot = false)%0A    private ConfigurationLoader%3CCommentedConfigurationNode%3E configManager;
 %0A%0A  
@@ -778,16 +778,21 @@
 ager() %7B
+%0A%0A   
  %7D%0A%0A    
@@ -949,21 +949,336 @@
 pConfig() %7B%0A
+        accountsConfig = new File(%22config/TotalEconomy/accounts.conf%22);%0A%0A        try %7B%0A            if (!accountsConfig.exists()) %7B%0A                accountsConfig.createNewFile();%0A            %7D%0A        %7D catch (IOException e) %7B%0A            logger.warn(%22ERROR: Could not load/create accounts config file!%22);%0A        %7D
 %0A    %7D%0A%7D%0A

Call the setupConfig function from the AccountManager class