Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
110 lines (85 loc) · 2.63 KB

2.2. Alt Account Management.md

File metadata and controls

110 lines (85 loc) · 2.63 KB

2.2. Alt Account Management

Minecraft server administrators may want to allow other players to join the server without linking accounts. This is where the alt account management endpoints come in. Here are the features

If you want in-depth documentation visit here

Claiming an Alt Account

For claiming alt accounts, a "claimer" must be provided and the alt UUID being claimed.

Curl Example

# POST /alts/{claimer}/{alt account name being claimed}
curl -X POST http://localhost:5353/alts/dhmci/Notch \
     -H 'Authorization: 124324ce5e874587b08df602e8c5c797'

Example Response HTTP 200 OK

<empty>

More Info

Listing Alt Accounts

This is for listing all the claimed alt accounts.

Curl Example

# GET /alts
curl -X GET http://localhost:5353/alts \
     -H 'Authorization: 124324ce5e874587b08df602e8c5c797'

Example Response

{
  "alt_accs": [
    {
      "alt_owner": "5bce3068e4f3489fb66b5723b2a7cdb1",
      "alt_id": "069a79f444e94726a5befca90e38aaf5",
      "alt_name": "Notch"
    }
  ]
}

Notes

  • alt_owner is dhmci's Minecraft player UUID without hyphens.
  • alt_id is Notch's Minecraft player UUID without hyphens.

More Info

Listing Alt Accounts of Someone

You might want to see what a player's alt accounts are, this endpoint is for filtering that list for you.

Curl Example

# GET /alts/{owner}
curl -X GET http://localhost:5353/alts/dhmci \
     -H 'Authorization: 124324ce5e874587b08df602e8c5c797'

Example Response

{
   "alt_accs":[
      {
         "alt_owner": "5bce3068e4f3489fb66b5723b2a7cdb1",
         "alt_id":    "069a79f444e94726a5befca90e38aaf5",
         "alt_name":  "Notch"
      }
   ],
   "owner":"dhmci"
}

Notes

  • alt_owner is dhmci's Minecraft player UUID without hyphens.
  • alt_id is Notch's Minecraft player UUID without hyphens.

More Info

Remove an Alt Account

Remove a given alt account, will respond 200 even if they don't exist in the database.

Curl Example

# DELETE /alts/{alt name}
curl -X DELETE http://localhost:5353/alts/Notch \
     -H 'Authorization: 124324ce5e874587b08df602e8c5c797'

Example Response HTTP 200 OK

<empty>

More Info