Clear item from armor slot?

Hello, i want to clear the helmet of my players, but don’t clear all!!!
how can i?
do you have any idea?

player.setHelmet(null)

i tried but it doesn’t work

it is the way to do it. Try reporting the issue

https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/entity/ArmorEquipable.java

i think i know why, i use an old version of sponge, a 3.X version, because the 4.X don’t solve an other problem, i think it’s that!!!

oh! it works now! i know why! it’s my code who put again the block on the head of the player!!!
but thx to you!!!