itzg/docker-minecraft-server

update docs for `manage-users` and user API provider

Fechada

#3.460 aberto em 21 de mai. de 2025

 (3 comentários) (1 reação) (0 responsável)Shell (1.858 forks)batch import
documentationenhancementhelp wanted

Métricas do repositório

Stars
 (13.694 estrelas)
Métricas de merge de PR
 (Mesclagem média 15h 10m) (32 fundiu PRs em 30d)

Description

Enhancement Type

Improve an existing feature

Describe the enhancement

Documentation Link: Server Properties - OPs/Administrators

Problem
When using the manage-users command to add an OP/whitelisted player with an Xbox/Microsoft Account (MSA), the container fails to start with the error:

[mc-image-helper] ERROR: Invalid parameter provided for 'manage-users' command: Could not resolve user from Playerdb

The Mojang API (https://api.mojang.com/users/profiles/minecraft/:username) returns:

{"errorMessage": "Couldn't find any profile with name :username"}

Even though the profile exists on:

Root Cause
Different Java Profile Name and xbox gametag.

Solution Use username from Java Profile Name. Or change it there to gametag value.

Guia do colaborador