Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operators without xuid? #378

Open
RealTadango opened this issue Dec 5, 2023 · 15 comments
Open

Operators without xuid? #378

RealTadango opened this issue Dec 5, 2023 · 15 comments

Comments

@RealTadango
Copy link

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?

@itzg
Copy link
Owner

itzg commented Dec 5, 2023

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 itzg added the discussion label Dec 5, 2023
@RealTadango
Copy link
Author

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.

@itzg
Copy link
Owner

itzg commented Dec 5, 2023

Can you provide logs?

@itzg
Copy link
Owner

itzg commented Dec 5, 2023

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.

@RealTadango
Copy link
Author

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

@mattholy
Copy link

mattholy commented Dec 6, 2023

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

@RealTadango
Copy link
Author

RealTadango commented Dec 6, 2023

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....).

@itzg
Copy link
Owner

itzg commented Dec 6, 2023

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.

@aerolincoln
Copy link

@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.

@RealTadango
Copy link
Author

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

@aerolincoln
Copy link

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
Copy link

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.

@RealTadango
Copy link
Author

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.

@aerolincoln
Copy link

No XUID for any user on the server.

@aerolincoln
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants