Added XP gain event and added XP gain permission