mojira.dev
MC-171420

OP players get kicked for not being on the whitelist (enforce = on)

On a server, when someone is deoped or un-whitelisted while whitelist = true and enforce whitelist = true, anyone not on the whitelist is kicked for "Not being on the whitelist" (All OP), but are not stopped from joining again. OP players are supposed to be exempt from whitelist, so either should be allowed on and not kicked or not allowed on at all when enforce whitelist is true (more likely they shouldn't be allowed on at all).

To reproduce

Server Settings:

enforce-whitelist=true
white-list=true

Players as example:

  • Test 1

  • Test 2

  • Test 3

OP list:

  • Test 1

  • Test 2

  • Test 3

Whitelist:

  • Test 1

  • Test 3

To kick all non-whitelisted players, any of these commands will work:

/whitelist remove Test1
/whitelist remove Test3
/deop Test1
/deop Test2
/deop Test3

If Test1 is un-whitelisted, everyone except Test3 will be kicked. If Test1 is de-oped, Test2 will be kicked.

Linked issues

Comments 4

Please provide the exact commands used.

Updated. Sorry for multiple edits. Finally was able to do some more testing, rather than just getting it on the bug reporter with the general idea.

Verified still exists in 21w08b

Happened twice today when deoping a player it would kick quite a few other players offline instantly and tell them they are not on the whitelist; We also do not have whitelist enabled so they log back in fine but the kick still occurs for them as well as the message.

Kick some good people on accident 0:

Not sure exact steps but try OPing multiple players then DEOP them with the server setting in game for whitelist turned off (/gamerule whitelist off)

They must be online to see the kick occur. 

Verified still exists in 21w11a

You do not even have to have the whitelist enabled, currently on our server if you DEOP any players it kicks ALL players and says were are not on the whitelist

user-2a4c8

(Unassigned)

Community Consensus

Platform

Low

Commands

20w06a, 1.16 Release Candidate 1, 1.16, 21w08b, 21w11a, 1.18 Release Candidate 4, 1.18

Retrieved