[SPIGOT-1168] player.setSleepingIgnored() not working on spectators Created: 04/Sep/15  Updated: 06/Sep/15  Resolved: 06/Sep/15

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

Type: Bug Priority: Minor
Reporter: Adrian Freund Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bukkit
Environment:

Linux arch-desktop 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 GNU/Linux

openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b24)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

git-Spigot-0359393-9a17f01



 Description   

When a players sleepingIgnored value is set to true by player.setSleepingIgnored(true) it does change as expected (player.isSleepingIgnored() returns true).
However if the player is a spectator his sleeping state is not ignored. Even though the value is set correctly..
Other people on the server can not sleep unless the spectator changes to a different gamemode. As soon as his gamemode switches the sleeping works.



 Comments   
Comment by Adrian Freund [ 06/Sep/15 ]

Seams to be fixed. Just tested it.

Can be closed.

Generated at Tue Apr 22 06:07:36 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.