public final class PlayerSleepEvent extends PlayerEvent
| Constructor and Description |
|---|
PlayerSleepEvent(Player player,
boolean sleeping) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSleeping()
Gets whether the player starts sleeping or if he just woke up.
|
getPlayerpublic PlayerSleepEvent(Player player, boolean sleeping)