// Path: src/main/java/com/creativemd/igcm/IGCMGuiManager.java
// public class IGCMGuiManager extends CustomGuiHandler {
// 	
// 	public static void openConfigGui(EntityPlayer player) {
// 		openConfigGui(player, "root");
// 	}
// 	
// 	public static void openConfigGui(EntityPlayer player, String path) {
// 		NBTTagCompound nbt = new NBTTagCompound();
// 		nbt.setInteger("gui", 0);
// 		nbt.setString("path", path);
// 		GuiHandler.openGui(IGCM.guiID, nbt, player);
// 	}
// 	
// 	public static void openProfileGui(EntityPlayer player) {
// 		NBTTagCompound nbt = new NBTTagCompound();
// 		nbt.setInteger("gui", 1);
// 		nbt.setInteger("index", 0);
// 		GuiHandler.openGui(IGCM.guiID, nbt, player);
// 	}
// 	
// 	@Override
// 	public SubContainer getContainer(EntityPlayer player, NBTTagCompound nbt) {
// 		int gui = nbt.getInteger("gui");
// 		String name = nbt.getString("path");
// 		switch (gui) {
// 		case 0:
// 			return new SubContainerConfigSegment(player, ConfigTab.getSegmentByPath(name));
// 		case 1:
// 			return new SubContainerProfile(player);
// 		case 2:
// 			return new SubContainerAdvancedWorkbench(player);
// 		}
// 		return null;
// 	}
// 	
// 	@Override
// 	@SideOnly(Side.CLIENT)
// 	public SubGui getGui(EntityPlayer player, NBTTagCompound nbt) {
// 		int gui = nbt.getInteger("gui");
// 		String name = nbt.getString("path");
// 		switch (gui) {
// 		case 0:
// 			return new SubGuiConfigSegement(ConfigTab.getSegmentByPath(name));
// 		case 1:
// 			return new SubGuiProfile();
// 		case 2:
// 			return new SubGuiAdvancedWorkbench();
// 		}
// 		return null;
// 	}
// 	
// }


import com.creativemd.igcm.IGCMGuiManager;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
package com.creativemd.igcm.command;



public class CommandGUI extends CommandBase {
	@Override
	public String getName() {
		return "ConfigManager";
	}
	
	@Override
	public String getUsage(ICommandSender icommandsender) {
		return "/ConfigManager";
	}
	
	@Override
	public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
		if (sender instanceof EntityPlayer) {
			EntityPlayer player = (EntityPlayer) sender;
// Path: src/main/java/com/creativemd/igcm/IGCMGuiManager.java
// public class IGCMGuiManager extends CustomGuiHandler {
// 	
// 	public static void openConfigGui(EntityPlayer player) {
// 		openConfigGui(player, "root");
// 	}
// 	
// 	public static void openConfigGui(EntityPlayer player, String path) {
// 		NBTTagCompound nbt = new NBTTagCompound();
// 		nbt.setInteger("gui", 0);
// 		nbt.setString("path", path);
// 		GuiHandler.openGui(IGCM.guiID, nbt, player);
// 	}
// 	
// 	public static void openProfileGui(EntityPlayer player) {
// 		NBTTagCompound nbt = new NBTTagCompound();
// 		nbt.setInteger("gui", 1);
// 		nbt.setInteger("index", 0);
// 		GuiHandler.openGui(IGCM.guiID, nbt, player);
// 	}
// 	
// 	@Override
// 	public SubContainer getContainer(EntityPlayer player, NBTTagCompound nbt) {
// 		int gui = nbt.getInteger("gui");
// 		String name = nbt.getString("path");
// 		switch (gui) {
// 		case 0:
// 			return new SubContainerConfigSegment(player, ConfigTab.getSegmentByPath(name));
// 		case 1:
// 			return new SubContainerProfile(player);
// 		case 2:
// 			return new SubContainerAdvancedWorkbench(player);
// 		}
// 		return null;
// 	}
// 	
// 	@Override
// 	@SideOnly(Side.CLIENT)
// 	public SubGui getGui(EntityPlayer player, NBTTagCompound nbt) {
// 		int gui = nbt.getInteger("gui");
// 		String name = nbt.getString("path");
// 		switch (gui) {
// 		case 0:
// 			return new SubGuiConfigSegement(ConfigTab.getSegmentByPath(name));
// 		case 1:
// 			return new SubGuiProfile();
// 		case 2:
// 			return new SubGuiAdvancedWorkbench();
// 		}
// 		return null;
// 	}
// 	
// }


// Path: src/main/java/com/creativemd/igcm/command/CommandGUI.java
import com.creativemd.igcm.IGCMGuiManager;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;

package com.creativemd.igcm.command;



public class CommandGUI extends CommandBase {
	@Override
	public String getName() {
		return "ConfigManager";
	}
	
	@Override
	public String getUsage(ICommandSender icommandsender) {
		return "/ConfigManager";
	}
	
	@Override
	public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
		if (sender instanceof EntityPlayer) {
			EntityPlayer player = (EntityPlayer) sender;
			IGCMGuiManager.openConfigGui(player);