public void openPrayMenu(final Player p, final God g, final Shrine s) {
		//Adding the player for statistics if not already registered
		AGPlayer agp = getAGPlayer(p.getName());
		if(agp == null)
			agp = addAGPlayer(p.getName());
		if(agp.isPraying()) {
			Messenger.sendMessage(p, Message.alreadyPraying);
			return;
		}
		
		//adding the inventory menu
		final AGPlayer fAGP = agp;
		IconMenu menu = new IconMenu(ConfigHandler.prayMenuTitle, g.getMenuSize(), new IconMenu.OptionClickEventHandler() {
	           @Override
	           public void onOptionClick(IconMenu.OptionClickEvent event) {
	        	   Praying praying = g.getPrayings().get(event.getPosition());
	        	   Messenger.sendMessage(event.getPlayer(), Message.choosenPraying, "%praying%", praying.getDisplayname());
	        	   prayed(event.getPlayer(), fAGP, g, praying, s);
	        	   event.setWillDestroy(true);
	        	   event.setWillClose(true);
	           }
	       }, plugin);
		 
		//adding the the items to choose the praying
		int i = 0;
		for(Praying praying : g.getPrayings()) {
			if(!PermHandler.hasPrayingPerm(p, praying)) continue;
			menu.setOption(i, new ItemStack(ConfigHandler.prayItem, 1), ChatColor.translateAlternateColorCodes('&', praying.getDisplayname()), ChatColor.translateAlternateColorCodes('&', praying.getDescription()));	 
			i++;
		}
		
		menu.open(p);
	}