server/server addplayer refactor