use effect when player join to server