Added onPlayerDemoted and onPlayerChangedName
Fixes #1178