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?