No Sleep
Warning: This datapack is still in beta testing. It should be relatively stable, but new features are planned to be added (including an option to forcibly prevent sleep). If you find any bugs, please report them on Codeberg.
About the Datapack
No Sleep is a Minecraft datapack that allows you to ask all players on the server not to sleep when you want them to. Simply activate the command, and participants will receive a notification about your request.
How to Use
To prevent sleep, execute the command /trigger no_sleep. After that, anyone who tries to sleep will see a message that you asked them not to sleep. Your request will be active for one in-game day (24000 ticks, approximately 20 minutes), after which it will need to be activated again.