public void prayed(final Player player, final AGPlayer agp, final God god, final Praying praying, Shrine s) {
		
		agp.setPraying(true);
		agp.getPrayed().put(s, System.currentTimeMillis());
		
		if(!agp.getFoundShrines().contains(s)) {
			Messenger.sendMessage(player, Message.foundShrine);
			agp.getFoundShrines().add(s);
		}
		
		if(ConfigHandler.removeNegativePotionEffects) {
			player.removePotionEffect(PotionEffectType.BLINDNESS);
			player.removePotionEffect(PotionEffectType.HARM);
			player.removePotionEffect(PotionEffectType.HUNGER);
			player.removePotionEffect(PotionEffectType.POISON);
			player.removePotionEffect(PotionEffectType.SLOW);
			player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
			player.removePotionEffect(PotionEffectType.SATURATION);
			player.removePotionEffect(PotionEffectType.CONFUSION);
			player.removePotionEffect(PotionEffectType.WEAKNESS);
			player.removePotionEffect(PotionEffectType.WITHER);
		}
		
		if(ConfigHandler.usePotionEffects) {
			player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, praying.getPraytime()/50, 2), false);
			player.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, praying.getPraytime()/50, 2), false);
		}
		
		//run each seconds the message for the player
		final int id = Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
			@Override
			public void run() {
				if(agp.isPraying())
					Messenger.sendMessage(player, Message.timeRemaining, "%time%", "");
			}
		}, 20, 20);
		//praying finished player will get grace
		Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
			@Override
			public void run() {
				Bukkit.getScheduler().cancelTask(id);
				if(agp.isPraying())
					gainedGrace(player, agp, god, praying);
				agp.setPraying(false);
			}
		}, praying.getPraytime()/50);
		
		updateBookText(player, player.getItemInHand());
	}