Replaced some instanceof to null checks
Fixed players not getting sound when they are harmed