Ask a Question

Ask a Question
Back to All

How can i check nickname duplication?

Hi. I'm making multiplayer dice game with Beamable.
I want to implement nickname duplication prevention system.
Below is my idea to implement nickname system.

  • I defined player nickname as Beamable stat
  • Client requests to set nickname via Microservices API (Let's call this API "SetNickname")
  • "SetNickname" API modifies caller's nickname stat

Then how can my "SetNickname" API check duplication and return error code to caller client?
Thanks.