Move the player event code to Server