[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 |