One Player Sleep icon

One Player Sleep -----

Why should you waste your precious time sleeping when someone else can for you!




Small update, but lots has changed without you knowing

Additions:
- New command: /revoke <player>
- Simple tab completer - This will become more advanced in later versions, but for now it's mainly a test
- Lots and lots of behind the scenes code junk. Making the code cleaner and nicer etc.
----------, May 22, 2021

Support for older version of Minecraft
----------, Mar 14, 2021

Updated to Spigot 1.16.5
----------, Jan 27, 2021

Updated for 1.16.4
----------, Nov 28, 2020

This plugin uses a specific extension of Bukkit called CraftBukkit which is no longer visible to the public, but still exists within the code. Using the hidden extension is essential to how this plugin works, but this requires specific version references to work. So any previous versions of the plugin will only work with the specific Minecraft versions that they were released for. So this release is version 2.8 of OnePlayerSleep for Bukkit 1.16.2

EDIT: This version also works with 1.16.3
----------, Aug 15, 2020

- Updated to Minecraft 1.16.1
- Fixed a bug caused by two or more people simultaneously sleeping
----------, Jun 28, 2020

You may notice that this update skips a few versions. That's because I kept adding things to the plugin, so much so, that I didn't want to keep spamming the plugin with updates, rather, have it all bundled in one nice package.

I would recommend that anyone looking to update to this version delete their previous data.yml as when a new one is created, all the new message sections will be created along with them.


So, what's new? Lots.

Additions:
Dynamic Messages!
- Every message used by the plugin is now in the data.yml configuration file
- New Key Terms:
{player}, {plugin}, {enabled}, {weather} and {duration}
The values of these terms are all explained in data.yml
- Messages now use color codes!

Sleep updates!
Most importantly, you can now set the sleep duration to longer than 100 ticks! I finally found a solution to this problem and this feature is now fully implemented

Changes:
- Updated optimization of the entire plugin.
- If you're a programming geek like myself, then essentially I split up a bunch of commands and plugin responsibilities to many new and very nice, neat classes. Basically, the code looks way better.

It seems like not a lot changed, but trust me, it did. Most of it was internal coding stuff. So not exactly visible, but the plugin has become a lot more intuitive. With the way things are setup now, it'll be really easy for me to setup new commands, and server event listeners in the future. So if there's a feature you'd like to see, let me know!
----------, Jan 24, 2020

Note: The duration may no longer be set to over 100 ticks. This unfortunately is due to how Minecraft handles player's sleep information. It stores a certain amount of ticks a player has been in bed and after 100 ticks automatically removes the player from the bed and changes the time. This number is locked and currently there is no method in Bukkit's API that allows for the changeability of this 100 tick maximum. However there are ways around this. Some of them I am still looking into and that I hope to implement in a future update. However anything below 100 ticks is still possible.

Now with that annoying note out of the way, on to things that matter!

Bug Fixes!
- Fixed a bug where if numerous people slept at different times, each process would run separately from each other. Meaning that the time was being set numerous times.
- Fixed a bug where if a player slept and then immediately left the bed, the time was still being changed.
- Fixed a bug where an error would occur if the message section in data.yml wasn't set to anything
I know this wasn't a very large update. However this isn't a very large plugin so there's really not a whole lot more to add. That being said, I still do want to add some more cool features. I already have some ideas:
- More dynamic sleep messages w/ tags such as {player}, {ticks}, color codes etc; that would be replaced to allow for more customizable messages.
- Like I mentioned, the ability to sleep for longer than 100 ticks
- More admin commands; although I'm not too sure what would be useful.
This is just a few ideas and things I want to implement. Please let me know if you have any ideas or things you'd like to see added to this plugin.
----------, Jan 8, 2020

One Player Sleep v2.1:

*Updated to the latest Minecraft version (1.15.1)*


Additions:

- Basic customizable configuration (data.yml, not config.yml):
- enabled - If the plugin is enabled
- changes_weather - If the weather is changed after sleeping
- message - The message displayed after sleeping
- duration - How long it takes a player to sleep (in ticks)
- New Basic Commands:
- /ops - lists the available sub-commands.

- /ops set enabled <true/false> - sets whether or not one player sleep is enabled. With no parameter, it returns the current state

- /ops set weather <true/false> - sets whether or not the weather is changed after a player sleeps. With no parameter, it returns the current state.

- /ops set duration <ticks> - sets the amount of ticks it takes until the time is set to day. With no parameter, it returns the current amount of ticks.

- /ops reload - reloads the configuration file

- New Basic Permissions:
- ops.reload - Allows the user to reload the configuration file
- ops.enable - Allows the user to enable/disable the plugin
- ops.enableweather - Allows the user to set whether the plugin changes weather
- ops.changeduration - Allows the user to change the amount of ticks it takes to sleep

----------, Dec 29, 2019

Resource Information
Author:
----------
Total Downloads: 208,714
First Release: Aug 13, 2017
Last Update: May 22, 2021
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings