public void inherit(CommandSender sender, String[] args){
		String inheritingGroup, inheritedGroup, inherit;
		inheritingGroup = args[0];
		try{
			inheritedGroup = args[2];
		} catch(ArrayIndexOutOfBoundsException e){
			sender.sendMessage(Red + "Group to inherit not specified!");
			return;
		}
		try{
			inherit = args[3];
		} catch(ArrayIndexOutOfBoundsException e){
			sender.sendMessage(Red + "true/false value not specified!");
			return;
		}
		
		ArrayList<String> list = new ArrayList<String>();
		if(xm.getXgroup().isGroup(inheritingGroup)){
			if(xm.getXgroup().isGroup(inheritedGroup)){
				if(inherit.equals("false")){
					if(xm.getPermissions().get().isSet("groups." + inheritingGroup + ".inherit")){
						String[] inherited = xm.getPermissions().get().getStringList("groups." + inheritingGroup + ".inherit").toArray(new String[0]);
						for(int i = 0; i < inherited.length; i++){
							if(!inheritedGroup.equals(inherited[i])){
								list.add(inherited[i]);
							}
						}
						xm.getPermissions().get().set("groups." + inheritingGroup + ".inherit", inherited);
					}
					xm.getPermissions().save();
					sender.sendMessage(Green + inheritingGroup + DarkGrey + " no longer inherits " + Green + inheritedGroup);
					return;
				}
				if(!inherit.equals("true")){
					return;
				}
				if(!xm.getPermissions().get().isSet("groups." + inheritingGroup + ".inherit")){
					ArrayList<String> groups = new ArrayList<String>();
					groups.add(inheritedGroup);
					xm.getPermissions().get().set("groups." + inheritingGroup + ".inherit", groups);
				}
				else{
					List<String> groups;
					groups = xm.getPermissions().get().getStringList("groups." + inheritingGroup + ".inherit");
					groups.add(inheritedGroup);
					xm.getPermissions().get().set("groups." + inheritingGroup + ".inherit", groups);
				}
				xm.getPermissions().save();
				sender.sendMessage(Green + inheritingGroup + DarkGrey + " now inherits " + Green + inheritedGroup);
				return;
			}
			else{
				sender.sendMessage(Red + inheritedGroup + DarkGrey + " could not be found");
			}
		}
		else{
			sender.sendMessage(Red + inheritingGroup + DarkGrey + " could not be found");
			return;
		}
	}