configManager = new ConfigManager(FEDIR, "main");
configManager.registerLoader(configManager.getMainConfigName(), this);
configManager.registerLoader(configManager.getMainConfigName(), new OutputHandler());
// Initialize data-API
StorageManager storageManager = new StorageManager(configManager.getConfig("DataStorage"));
DataStorageManager.manager = storageManager;
DataStorageManager.registerDriver("ForgeConfig", ForgeConfigDataDriver.class);
DataStorageManager.registerDriver("NBT", NBTDataDriver.class);
DataStorageManager.registerDriver("SQL_DB", SQLDataDriver.class);
registerDataTypes();
storageManager.setupManager();
// Load network packages
FunctionHelper.netHandler = NetworkRegistry.INSTANCE.newSimpleChannel("forgeessentials");
FunctionHelper.netHandler.registerMessage(S0PacketHandshake.class, S0PacketHandshake.class, 0, Side.SERVER);
FunctionHelper.netHandler.registerMessage(S1PacketSelectionUpdate.class, S1PacketSelectionUpdate.class, 1, Side.CLIENT);