Bed Bugs [Forge] Mod 1.12.2/1.11.2/1.10.2 adds a few tools not existing before. These items will allow the user to kick themselves from the server without effort.

About Bed Bugs
It’s a simple mod. It supplements some tools, for example, a button to the sleeping GUI and a command.
A player can kick themselves from the server (and therefore their bed).
The mod fixes an annoying bug where you got stuck in a bed. You can escape from that vanilla Minecraft issue without having to entirely restart the game.
Additionally, it adds persistent chat. Hence, it’s possible for you to keep typing without being interrupted after waking up from a bed.
Kick Button
(Needs to install the Bed Bugs mod on the client)
When you press “Leave Bbed’, you can expect what you want to happen.
Assume that it is the case (as usual), the mod will do nothing.
Nevertheless, if you hit the Leave Bed button and you don’t leave the bed, a button will appear. So, you can kick yourself from the server.
If you were joining Singleplayer, you’ll be able to head back to the Singleplayer world selection screen.
If you were playing on a server, you will go back to the Multiplayer server selection screen.
The button has a tooltip showing its actions in Minecraft. It describes what it implements when you click. It will pop up after hovering the mouse over the Kick Me button for a while.
Kick Command
(Install BB on the server if you use a dedicated server/playing Multiplayer)
The release supplements one command (with tab completion).
/bedbugs kick [player]
This kicks the character specified. If nobody is chosen, it will try to kick the command sender.
Persistent Chat
(Install BB on the client)
Normally, if you type a message in chat and complete sleeping and wake up, your message disappears.
It solves that and lets any half-completed message stay. So, it’s unessential for you to retype anything.
Client/Server Side Only
It’s unnecessary to install the Bed Bugs on both the client and the server. You may only wish to install it on both. Here are details for those who are excited about:
Client (with BB) -> connecting to -> Server (with BB)
The button, command, and chat persistence work.
Probably the top and simplest option.
Client (with BB) -> connecting to -> Server (without BB)
Only the button and chat persistence work.
Helpful as any client can connect and still deploy the button without the server needing to add mods
Client (without BB) -> connecting to -> Server (with BB)
Only the command operates.
Effective as the command can still run to escape from beds. It doesn’t require the client to set any more mods.
Bed Bugs is a miscellaneous mod. It has fixed some bugs that relate to the beds on online servers.