just create a hand rig llike normal, then use constrains for the sword to follow the hand's orientation and position.