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
is duplicated by 1
Comments 4
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.
Please provide the exact commands used.