mojira.dev
MC-50386

Server: Whitelist / Banlist / Operator doesn't work in offline-mode

This may just be an unavoidable side effect of the new UUID system on servers, but If whitelisting and offline mode are on, the server will reject every player that tries to connect. It shows up in the server log as "You are not white-listed on this server!" This persists even after reloading the whitelist or restarting the server. I would assume that this sort of thing is what the new "usercache.json" is for?

Edit: In 14w10b, whitelists worked as long as the server was in online mode. As of 14w10c, whitelists don't work even in online mode.

Edit: It seems that when the snapshot converted all of my server files, it looked up the incorrect UUID for myself. It then stored said incorrect UUID in the user cache. To fix the problem. Simply delete the usercashe.json file and let the server re-create it on restart. Still doesn't work for offline mode.

Linked issues

MC-50361 Server: Using /op from the console doesn't work when server is in offline-mode Resolved MC-50467 Minecraft server console bug. Resolved MC-50480 can't use whitelist on server. Resolved MC-50547 Not loading files in the new format version Resolved MC-50587 Can't give op Resolved

Comments 6

Same here.

Impossible to use whitelist or Ops list, not player name or UUID

affected on 14w10c too

I got that problem too, can't use whitelist or op list on my 14w10c server

I have the same issue as well. I've tried Player Names, UUID, and IP addresses... nothing. Do I have to put inside those new brackets that show up if you do a clean server install, or what?

figured out how to add myself with the new UUID lol just used the server commands in the server console to add myself and others on my server as OP and whitelist... works perfect now for ONLINE... I'm not sure about offline

Offline servers and whitelists/bans/ops/any kind of list makes no sense, anyone can be anyone at any time. This is not supported behaviour by us, and it will not work for offline servers.

This is just in case my question was misunderstood (which I think is unlikely, I'm not trying to be that user that is whining about his issue). I understand that an internet connection is absolutely required to edit whitelists/op list/etc., as the server must look up the appropriate UUIDs. My bit is that as the server stores the UUIDs, somebody who is opped or something should still have those privelages if the server is running without an Internet connection.However, I understand that this is an issue that effects a very small number of people, and I can probably find a way to make it work if I have to. You're still awesome, Mojang.

Christian Moomaw

(Unassigned)

Unconfirmed

offline, server, whitelist

Minecraft 14w10b, Minecraft 14w10c

Retrieved