Sets playersSleepingPercentage to 1 whenever someone joins a realm so they don't have to faff about with commands and whatnot
When the player joins the realm the following function is run:
# Keep the function quiet
gamerule commandBlockOutput false
gamerule sendCommandFeedback false
# Set the sleep percentage
gamerule playersSleepingPercentage 1Go to the Releases Page, download the .mcpack file, profit.