Moved registration of PlayerEvents listener out of "if" statement