setSleepingIgnored resets the night even when there is no one in a bed.

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • git-Spigot-1eece4f-d203283 (MC: 1.14)
    • Yes

      In a plugin I make use of the method setSleepingIgnored, for players who are AFK. However if this method gets initiated when they are the only ones on the server, it would still reset the time to dawn.

      According to the javadoc, at least one player should be sleeping in a bed, however this restriction is no longer in place.

      https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setSleepingIgnored-boolean-

            Assignee:
            Unassigned
            Reporter:
            Robin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: