public void applyEffects(Player player, String scroll) throws PotionEffectInvalidException {
		
		// Player does not get potion effects
		if (player.hasPermission("scrollteleportation.potioneffectbypass")) return;
		
		List<String> effects = plugin.getMainConfig().getEffects(scroll);
		
		for (String effect: effects) {
			String[] args = effect.split(" ");
			
			if (args.length != 2) {
				throw new PotionEffectInvalidException("Missing duration argument for '" + effect + "'!");
			}
			
			String realEffect = args[0].trim();
			int duration = 1;
			
			try {
				duration = Integer.parseInt(args[1].trim());
			} catch (Exception e) {
				throw new PotionEffectInvalidException("Invalid duration for '" + effect + "'!");
			}
			
			PotionEffectType potionEffect = matchPotionEffect(realEffect);
			
			if (potionEffect == null) {
				throw new PotionEffectInvalidException("PotionEffect '" + realEffect + "' is not a valid effect!");
			}
			
			// Play effect 
			player.addPotionEffect(new PotionEffect(potionEffect, duration * 20, 1));
		}	
	}