Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4888

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 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-

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

              Created:
              Updated:
              Resolved: