Applying potion effects to the player

I am trying to apply potion effects to the player, but it is simply not working.

List<PotionEffect> inGame = new ArrayList<PotionEffect>();
inGame.add(PotionEffect.builder().particles(true).potionType(PotionEffectTypes.JUMP_BOOST).amplifier(10).duration(10).build());

player.offer(Keys.POTION_EFFECTS,inGame);

What am I doing wrong?

Which SpongeForge version are you using?

Thanks! Updating to the latest SpongeForge fixed the issue.