Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by skywolfgamestudios · Jun 23, 2021 at 02:23 AM · apisPlayer DataAuthenticationmultiplayer

Set up a Player as Admin?

Can someone advise or point me in the right direction as to how I can Authenticate a specific (1) Player as an Admin in the game? I think this should be possible but I'm kinda new to Playfab and Multiplayer Servers so I wanna make sure I go about it the right way if hopefully possible here.


Comment

People who like this

0 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Jun 24, 2021 at 06:50 AM 0
Share

To help us provide a better solution for your issue, we may need more details about your requirement. May I ask what does this "Admin" player do in your game? Is it like a GM? Does it need to manage and perform administrative actions for all players in the title? How is this Admin player involved with multiplayer gaming?

avatar image skywolfgamestudios SethDu ♦ · Jun 24, 2021 at 02:17 PM 0
Share

Yes pretty much sort of like a GM on the Level with the ability to:

1. show/hide/add/remove a mesh on the map
2. adjust purchases, but if im not mistaken I think that might be only doable in playfab/xsolla so I might have to add the user that way outside the game

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jun 25, 2021 at 02:11 AM

It will be fine if the player is like a GM (normally there will be few GMs for each server). To be clear, client API calls have an upper bound of 100 calls per 2 minutes per IP, while server API won’t have this specific limit. You may implement GM functionalities on Cloud Script/Azure Function (CSAF)

It is easy to realize some features for GM to modify PlayFab player data/items and you may add Server API calls in specific CSAF functions. To authenticate GM account to ensure the CSAF execution API call is valid, you need to store a global static dictionary or a list in CSAF and when API is called, the caller information can be read from “context”, so that the function can compare with the static value you have defined.

You may also fine to store the credentials in Player Internal Data, or store GM PlayFab ID list in Title Data, which cannot be modified by players.

Meanwhile for your questions:

  1. it seems to be an issue in online multiplayer games. will the GM connect to the multiplayer server?
  2. Adjust virtual currency and items is easy. In terms of real money purchase, what GM can do is only adjusting items.
Comment
skywolfgamestudios

People who like this

1 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image skywolfgamestudios · Jun 25, 2021 at 12:54 PM 0
Share

Hi Seth, thank you kindly for the advice and clarification.

  1. it seems to be an issue in online multiplayer games. will the GM connect to the multiplayer server?
    I think that would probably be yes as I don't see another way around it since the GM would need to be able to modify meshes and textures. I think Minecraft sort of does something similar I believe, just trying to understand it all further.
  2. Adjust virtual currency and items is easy. In terms of real money purchase, what GM can do is only adjusting items.
    Alright, thank you for the info.
avatar image SethDu ♦ skywolfgamestudios · Jun 28, 2021 at 01:51 AM 0
Share

1. Besides of VC & items adjustment, modifying meshes and textures is simply server behavior, where PlayFab cannot directly involve. You may implement authentication steps to grant admin player permission on the server.

  • Store a list of admin player PlayFab ID or title player acount ID on PlayFab (refer to my previous replies)
  • Verify the player and let them submit session ticket to the server so that server can call AuthenticateSessionTicket API for verification.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    recover yser account \ marge user accounts into one 1 Answer

    Integrate my own server with Playfab's Multiplayer system 1 Answer

    Disable longitude/latitude tracking? 1 Answer

    Playfab public offerts 1 Answer

    Different between LinkGameCenterAccount and LoginWithGameCenter 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges