Adding a potion effect to a player

I_Cant_Code

New Member
Can anyone point me in the right direction for creating this effect on a player. I have watched the tutorials online mainly Bukkit, but some of the ways that they do it seem to be different from how its done on NukkitX. I have read the docs and tried a few different ways but still i'm unable to achieve this. Thanks.
 

CreeperFace

🇨🇿🇺🇦 Слава Україні!
Staff member
Can anyone point me in the right direction for creating this effect on a player. I have watched the tutorials online mainly Bukkit, but some of the ways that they do it seem to be different from how its done on NukkitX. I have read the docs and tried a few different ways but still i'm unable to achieve this. Thanks.
PHP:
p.addEffect(Effect.getEffect(Effect.FIRE_RESISTANCE).setDuration(300 * 20).setAmplifier(2).setVisible(false));
 
Top