[SPIGOT-4888] setSleepingIgnored resets the night even when there is no one in a bed. Created: 07/May/19  Updated: 08/May/19  Resolved: 08/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Robin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.14, sleeping

Version: git-Spigot-1eece4f-d203283 (MC: 1.14)
Guidelines Read: Yes

 Description   

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-



 Comments   
Comment by md_5 [ 08/May/19 ]

1.14.1 fixes some sleeping bugs, so could be related to that

Generated at Sat Dec 13 13:39:29 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.