If you enter /kick and then your name in a singleplayer world , that is not shared to lan , the game will freeze
Related issues
Comments

If you enter /kick and then your name in a singleplayer world , that is not shared to lan , the game will freeze
migrated
(Unassigned)
Confirmed
Minecraft 17w45a
Retrieved
Resolving in favor of MC-121629, this bug is caused by that, fixing that, fixes this.