@Override
 public double getFasterMovementAmplifier(final Player player) {
   final net.minecraft.server.EntityPlayer mcPlayer = ((CraftPlayer) player).getHandle();
   if (mcPlayer.hasEffect(MobEffectList.FASTER_MOVEMENT))
     return mcPlayer.getEffect(MobEffectList.FASTER_MOVEMENT).getAmplifier();
   else return Double.NEGATIVE_INFINITY;
 }
  @Override
  public double getJumpAmplifier(final Player player) {
    final net.minecraft.server.EntityPlayer mcPlayer = ((CraftPlayer) player).getHandle();

    if (mcPlayer.hasEffect(MobEffectList.JUMP))
      return mcPlayer.getEffect(MobEffectList.JUMP).getAmplifier();
    else return Double.NEGATIVE_INFINITY;
  }