Hi,
Currently, I want to set Username for players, I want the username in nakama to be the same as usernames in my server. Because Nakama does not allow 2 players to have the same username so I have to delete the old account having the designed username if there is any first.
I’m working with “BeforeUpdateAccount” function. However, the api.UpdateAccountRequest does not have the userId value of the current player, so cannot check the current player is the one having the designed username or not.
Hope someone can suggest me what should I do in this case.