Does Player#addPotionEffect with speed 1 work for anyone else?

I am trying to give a player speed 1.

Here’s my code:

Player p;
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 20*60*5, 1));

It always grants the player p speed 2.

you’re setting the amplifier, not the level, iirc; 0 = level 1

Fixed by setting amplifier to 0.