import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
Пример его работы: Player player = (Player) sender;
PotionEffect effect = new PotionEffect(PotionEffectType.LEVITATION, 200, 1);
player.addPotionEffect(effect);
return true;