Implements the playersSleepingPercentage gamerule (useless after 1.17 but I didn't pay attention to change logs).