SOLUTION
onArmorTick:
I have a problem im using onArmorTick to consume Mana from player, this armor will be summoned by the player when he use 10 mana, after 1000 ticks it should consume 10 mana again and this everytime when wearing the summoned armor and when the current mana is lower than the costs it will be deleted from inventory, but i have the problem that it consumes 30 mana every time when the ticks are higher than 1000, so the console execute the code 3 times.
here the console log:
and here the code of onArmorTick:
PacketDispatcher.sendToServer(new UpdatePropsStats(1, 10));
is just a method to update players stats from client side.
also here the code in the UpdatePropsStats class: