OnePlayerSleep 3.1.7

Pass the night/storm if a player sleeps, based on the OnePlayerSleep datapack

  1. fixing weird exception on wakeup

    Leaf26
    java isn't handling loops correctly
  2. fixed duplicate message

    Leaf26
    when doing global sleep, the message shouldn't kick off twice
  3. added cooldown

    Leaf26
    added configurable cooldown in ms for entering a bed
    fixed some message issues
  4. bugfixes

    Leaf26
    fixed per-player messages
    fixed config overwrite
    set default values for message stuff
  5. better config update handling

    Leaf26
    added option to reset all players' sleep statistics
    improved handling of config updates
  6. logic updates

    Leaf26
    added globalNightSkip config option to sync worlds on sleep
    updated sleep event logic a bit
  7. updated sleep.bypass case

    Leaf26
    all messages have the same cantWakeup value for now but it can be changed on a per-message basis
  8. minor changes

    Leaf26
    made sleep.ignore false by default for testing purposes

    added a message for sleep.bypass cases. I'll make it configurable later.
  9. made it work with prior versions

    Leaf26
    tested as far back as 1.11
  10. compatibility and optimizations

    Leaf26
    Added help command & function
    Simplified permission lookup