docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

Operators without xuid?

Open RealTadango opened this issue 1 year ago • 15 comments

I want to setup a server for my kids but when they login there is no xuid in the log. They don't have mojang accounts, just a local profile in the app. I want them to be operator in the server when they login. What can i do?

RealTadango avatar Dec 05 '23 17:12 RealTadango

I thought Microsoft/Mojang/Xbox account was required to use any of the Minecraft mobile/console apps. In which case, I am not familiar with the "offline" access you're attempting and recommend you search more broadly for answers to that scenario.

Out of curiosity, can you post the server logs during one of the logins?

itzg avatar Dec 05 '23 17:12 itzg

No, a mojang account is not needed :) Not on Android and the Playstation 4 where we use them. We can play together on the local network without an account. I am adding a docker server so they have a common server and don't rely on each others machine to start.

I found that the default user level set to operator works, but only when they have not joined before. the OP command is not "sticky" on the server. Sadly now all are there friends will also be operators when they come over and play... but at least they can have fun on the server.

RealTadango avatar Dec 05 '23 18:12 RealTadango

Can you provide logs?

itzg avatar Dec 05 '23 18:12 itzg

In any case it sounds like you have found the solution. There's nothing special the container setup can do beyond what you have done so far.

itzg avatar Dec 05 '23 18:12 itzg

2023-12-05 19:07:50:757 INFO] Player connected: Zonnig, xuid: [2023-12-05 19:07:54:474 INFO] Player Spawned: Zonnig xuid: , pfid: 99d7a8123147739a [2023-12-05 19:08:56:676 INFO] Player disconnected: Zonnig, xuid: , pfid: 99d7a8123147739a [2023-12-05 19:10:17:664 INFO] Player connected: Zonnig, xuid: [2023-12-05 19:10:21:195 INFO] Player Spawned: Zonnig xuid: , pfid: 99d7a8123147739a [2023-12-05 19:10:32:470 INFO] Player disconnected: Zonnig, xuid: , pfid: 99d7a8123147739a [2023-12-05 19:11:54:215 INFO] Player connected: Zonnig, xuid: [2023-12-05 19:11:57:869 INFO] Player Spawned: Zonnig xuid: , pfid: 99d7a8123147739a [2023-12-05 19:12:34:578 INFO] Player disconnected: Zonnig, xuid: , pfid: 99d7a8123147739a

This is what i see when i connect. No xuid but pfid is the same. It matches what i see in the app

RealTadango avatar Dec 06 '23 07:12 RealTadango

xuid is so called Xbox user id, and it will be null as did not login.

see https://www.roxservers.com/knowledgebase.php?action=displayarticle&id=835&language=english

mattholy avatar Dec 06 '23 07:12 mattholy

xuid is so called Xbox user id, and it will be null as did not login.

see https://www.roxservers.com/knowledgebase.php?action=displayarticle&id=835&language=english

Yes but i want a user to be an operator without specifying an OP every session. I see the issue but hoped there was a solution for local servers (there kinda is....).

RealTadango avatar Dec 06 '23 07:12 RealTadango

Thanks for the logs @RealTadango

This image is just a very thin layer around the Mojang provided software, so I can't solve this issue without something to automate towards on their end.

itzg avatar Dec 06 '23 13:12 itzg

@RealTadango how did you end up solving this for your kids with the default permission? I am in the same situation you are and changed the DEFAULT_PLAYER_PERMISSION_LEVEL to "operator" but I am unable to use the teleport command in-game. My kid's character is off somewhere and I am trying to get us back together.

aerolincoln avatar Jan 11 '24 02:01 aerolincoln

@aerolincoln Check if you see default-player-permission-level=operator in the server.properties. Also check you level after connecting.

RealTadango avatar Jan 11 '24 07:01 RealTadango

image

I can't figure out how to check my own level in the game. The command /permission doesn't work perhaps because I don't have enough permission to use it.

aerolincoln avatar Jan 11 '24 16:01 aerolincoln

I'm guessing because I had already joined the server that the "default for new players" value didn't apply to me and I have to somehow flush that record for this to take effect.

aerolincoln avatar Jan 11 '24 16:01 aerolincoln

I'm guessing because I had already joined the server that the "default for new players" value didn't apply to me and I have to somehow flush that record for this to take effect.

I don't think so? Since there is no xuid it worked fine for me but if you have a xuid it might be different.

RealTadango avatar Jan 11 '24 16:01 RealTadango

No XUID for any user on the server.

aerolincoln avatar Jan 11 '24 16:01 aerolincoln

Resetting or restarting the server didn't work but deleting it and recreating it did. I saw some comment on another issue that suggests the permissions are not being properly set after the first time a player joins. I have access to all the operator commands now. Fortunately we hadn't been playing very long and didn't lose much.

aerolincoln avatar Jan 11 '24 17:01 aerolincoln