This is a simple plugin that allows players to use a black bed to turn it night time.
When you craft a black bed the name of that bed will be 'Reverse Bed'. You don't just have to craft the bed for it to work, it works for all black beds. So if you find a black bed in a village, you can use it to turn it night.
I also integrated the single sleep ability. This allows a single player to use a bed to turn it day on a server with multiple people. This also is the case for the reverse beds to turn it night.
I hope you will have fun with it! The source code can be found here