Here there is an extra semicolon after the condition:
if (stack.getItem() == halo.TitaniumLeggings);
Remove it. Statement will be like this:
if (stack.getItem() == halo.TitaniumLeggings) { ... }
solved Syntax error on token `else` [closed]