1.15.2 Sleep during the day: PlayerInteractEvent/PlayerBedEnterEvent

Discussion in 'Spigot Plugin Development' started by dkajlw, Apr 16, 2020.

  1. Hey guys, I want to make it possible to sleep during the day, without it having to be a thunderstorm. I have been doing quite a lot of research and came up with those two events. However, none of the examples I have found online seemed to work for the people who were using them, and didn't for me either.
    What I am looking for are specifically ideas on how to allow a player to use a bed during daytime, to skip the time to the next day. Thanks in advance!