public boolean exec(CommandSender sender, String[] args) {
		if(args.length != 1)
		{
			sender.sendMessage(usage);
			return true;
		}
		try
		{
			String oldguild = FGMySQL.getMemberGuild(sender.getName());
			if(!oldguild.equals(""))
			{
				sender.sendMessage(ChatColor.RED + "You are already in a guild!");
				return true;
			}
			if(!FGMySQL.getGuilds().contains(args[0]))
			{
				sender.sendMessage(ChatColor.RED + "Guild does not exist!");
			}
			String option = FGMySQL.getOption(args[0], "status");
			if(option != "public")
			{
				sender.sendMessage(ChatColor.RED + "Guild is not public!");
				return true;
			}
			FGMySQL.joinGuild(args[0], sender.getName());
			sender.sendMessage(ChatColor.GREEN + "You joined the guild " + args[0] + "!");
			return true;
		}
		catch(SQLException e)
		{
			e.printStackTrace();
		}
		return false;
	}