Can somebody help me with this,
I would like to remove the effect if a player unequips the helmet.
The applying effect works, however removing it does not.
I also get no errors, Can somebody explain to me whats wrong?
(Btw, I know you can just use on equip events etc, but I like to use SKBee for it wich works fine)
[doublepost=1594245704,1594241616][/doublepost]I found out why it doesn't remove the effect:
Because getLevel(player's helmet,... is air because if old armor item is a any helmet: checks if the helmet is unequiped so they won't be wearing a helmet. So I basically need to change it to getLevel(old player's helmet
Using SKbee
But that isn't a thing, So how to fix it?
I would like to remove the effect if a player unequips the helmet.
The applying effect works, however removing it does not.
I also get no errors, Can somebody explain to me whats wrong?
(Btw, I know you can just use on equip events etc, but I like to use SKBee for it wich works fine)
code_language.skript:
on player armor change:
if new armor item is any helmet:
send "&a%player% equipped a %new armor item%" to player
if getLevel(player's helmet,"test") > 0:
apply slowness 2 to player for 5 seconds
if old armor item is a any helmet:
send "&a%player% unequipped a %old armor item%" to player
if getLevel(player's helmet,"test") > 0:
remove slowness from player
Because getLevel(player's helmet,... is air because if old armor item is a any helmet: checks if the helmet is unequiped so they won't be wearing a helmet. So I basically need to change it to getLevel(old player's helmet
Using SKbee
But that isn't a thing, So how to fix it?