I want to have a way to add custom potion effects to a potion what I mean is like water breathing 5 or something like that how would I do that?
Code:java player.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, amplifier, length-in-ticks));
monkeymanboy There's something called attributes. I don't know what they are/do but that might be how you would do it but another way could be renaming the potion and the on PlayerItemConsumeEvent you would check if the name is for example 'Potion of Breathing V' and if it is, then add Breathing 5 to the player by doing what BenCS_ said
Loogeh ah nevermind i just found it http://jd.bukkit.org/rb/doxygen/d3/de6/enumorg_1_1bukkit_1_1potion_1_1PotionType.html