added playerCanChangeTeam hook.
Fixes #933