April 2017
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
April 2017
A new version has been released for Sleep Vote, it is available for download here.
Should be refined enough for regular use, but just to make sure, this will be marked as “Beta”
Report bugs in the issue tracker.
April 2017
A new version has been released for Sleep Vote, it is available for download here.
Changelog
- Fixed a bug where a player could trigger a sleep vote despite not being in range of a bed
- Fixed a bug where the vanilla sleeping mechanic overrides the plugin’s, preventing the displaying of the wakeup message and instead kicks everyone out of bed
- Moved configuration file to /config/sleepvote/sleepvote.conf
- Added more configurable messages
- Optional chat prefix “[SleepVote]” for SleepVote messages
- Option to log all voting status messages to the console (e.g. “[world] Player has went to bed! 1/100 (1%)”)
- Added 4 second delay to the initiation of the player’s vote after they right-click a bed (to give the animation a bit of time)
- Added a reload command (’/sleepvote reload’)to reload the plugin’s configuration without needing to restart the server. Also works with ‘/sponge reload’
April 2017
A new version has been released for Sleep Vote, it is available for download here.
Hotfix update:
- Fixed an issue where the world’s rain/thunder was not cleared when a sleep vote was successful.
April 2017
Nice update !
Could you make the commands obsolet ? Like when a player goes to bed, a message is sent “Would you like you SleepVote ? [Yes] [No]”. In fact same as before but with clickable text as well as commands 
1 reply
April 2017
▶ Keuterio
That’s a neat idea, but it may also be annoying for some players.
Usually players expect to just sleep and have the vote counted, rather than having to press an additional button along with it.
April 2017
Well, forget about this, it was a silly suggestion for this case.
Maybe… Could you add a sound when people want to sleep ?
1 reply
April 2017
A new version has been released for Sleep Vote, it is available for download here.
Minor bugfix update:
- Fixed an issue in which the number of players required to sleep was not always consistent
April 2017
▶ Keuterio
Sure, but I’ll make sure it’s togglable in the settings (both server and client) since it may get annoying.
May 2017
A new version has been released for Sleep Vote, it is available for download here.
(Note, this is a re-upload since some people have reported being unable to download this version from Ore)
Edit2: nevermind, still broken. Will fix soon. For now, download from the GitHub releases page
May 2017
A new version has been released! v0.5.0
- Added sounds that play on the wakeup, enter and exit bed messages
- Added two new commands: ‘sleepvote hide’ and ‘sleepvote mute’
- The ‘sleepvote hide’ command toggles whether a player is hidden from the plugin. The same effect can be accomplished by giving/taking away the permission ‘sleepvote.hidden’
- The ‘sleepvote mute’ command toggles whether a player will hear sounds played by the plugin. The same effect can be accomplished by giving/taking away the permission ‘sleepvote.mute’
- Added a configuration option to completely disable/enable sounds
- Added configuration options to ignore players with certain game modes
- Added Nucleus integration for the ability to ignore AFK players
Built for Sponge API 5.1.0 and Minecraft 1.10.2. It is forward compatible with Sponge 6.0.0 and Minecraft 1.11.2.
Still working to get the Ore downloads fixed. For now, download from the GitHub releases page
May 2017
Me and my players really like your plugin, so convenient 
May 2017
Is there a way to turn off the percentage of people required to sleep? We want it so if 1 player sleeps in the bed no matter how many players are online it will go to day time. I tried changing the percentage from 0.5 to 0 but that didn’t seem to help… Is this a feature that can be added?
1 reply
May 2017
▶ rogueangel
What about 5-10 ? Unless you have a lot of people connected of course.
Thus, in “SleepVote” there is “Vote” which involves that people can chose. Having just one player in bed and switching to daytime would be “SleepDictator” 
1 reply
May 2017
▶ Keuterio
Yes I understand the humor behind what your saying and the logical implication.
It seems like it would not be hard to implement a no requirement to sleep, as the value can ben changed from 50% to other percentages “or so it says, I have not messed with it much”. Cannot find another mod that does this on the ore, and all other forge mods seem to be similar to this one where you need % of players to sleep. For now Im using a command block system similar to Hermitcraft to do what I want but id rather use a mod if possible.
Percentage of players (in a world) required to be sleeping in order to advance through the night.
“required_percent_sleeping” = 0.5
can the dev make it so If that is changed from 0.5 to 0 then 0 players are required and one person can sleep to set the night? We typically are out exploring, mining, building etc…and far away from beds. We all are on Discord and ask if anyone is near a bed and usualy 1 person is at base and can hop in the bed to skip the night. If not we tough it out. Its very rare to have 50% of the server near a bed.
1 reply
May 2017
▶ rogueangel
That’s a great idea! I’ll add this in the next update, and refine the idea to make it more customizable.
1 reply
May 2017
▶ Icohedron
Excellent!! =)
Thnx again for your hard work developing this plugin =)
1 reply
May 2017
A new version has been released! v0.5.1
- Allows the use of 0.0 percent for the variable “required_percent_sleeping”, in which case it will use a minimum requirement of 1 player sleeping
Built for Sponge API 5.1.0 and Minecraft 1.10.2
Forward compatible with Sponge API 6.0.0 and Minecraft 1.11.2
Still working to get the Ore downloads fixed. For now, download from the GitHub releases page
May 2017
▶ rogueangel
Your suggestion for allowing a percentage of 0.0 to have 1 player sleep to skip the night has been implemented in the latest version (0.5.1).
The next update (0.6.0) will build on this and incorporate @Keuterio’s idea for allowing other specified amounts (e.g. 5, 10, or any integer value). It will be available as a new configuration option, and the plugin will pick the smaller of the two requirements.
1 reply
May 2017
▶ Icohedron
Not sure if this is a bug or not…I remember going to root - config - sleepvote and there being a config file in there for me to mess with…The folder is empty…tried doing some basic sleepvote commands in game nothing, slept nothing no sleep vote…thought myabe I installed 0.5.1 wrong so I re downloaded and filezilla ftp it over to the mods folder again (after turning off server and removing old 0.5.1.jar file and sleepvote folder in the config folder of course). still no luck…no config file.
1 reply
May 2017
▶ rogueangel
Wow, can’t believe I missed that!
A quick fix is coming up.
May 2017
A new version has been released for Sleep Vote, it is available for download here.
- Fixed a bug in which the configuration file was not created on the first startup
Made for Sponge API 5.1.0 and Minecraft 1.10.2
Forward compatible with Sponge API 6.0.0 and Minecraft 1.11.2
May 2017
And there is no problem when you delete the configuration file then reload the server. Perfect 
We get the warning that it is built on top of API 5.1 but it’s ok with API 6.1.
1 reply
May 2017
▶ Keuterio
The compatibility notice is there just for those who ask.
June 2017
A new version has been released for Sleep Vote, it is available for download here.
Changelog:
- Added a new configuration option “ignore_admins” which ignores players with the permission ‘sleepvote.hidden’
- Changed how the ‘hide’ and ‘mute’ commands work. They no longer work by using permissions and instead the plugin keeps track instead. You can now spam those commands without needing to wait, they apply instantaneously, and now work 100% of the time. The only downside to the new method is that players will have to re-apply the command if the server restarts.
- Added a new configuration option “unhide_warning” which lets the player know of any other factors that keep them from being visible from the plugin after trying to unhide themselves with the ‘hide’ command
- Added a new command: ‘/sleepvote status’ which tells the player whether or not they are hidden from sleep votes, and whether or not they have SleepVote’s sounds muted
- Added a new configuration option “required_number_sleeping” that works in combination with the percentage. This can be disabled by assigning it a value <= 0. The plugin will pick the lower of the two requirements (percent vs number).
- Fixed a bug in which a player could jump unto a bed, immediately execute ‘sleepvote hide’, and add themselves to the vote while still subtracting 1 from total player count
- Changed version naming convention to something be more… pronounced
- Added some cool-looking checksums! Because, why not?
Made for Sponge API 5.1.0 and Minecraft 1.10.2
Forward compatible with versions up to and including Sponge API 7.0.0 and Minecraft 1.12
MD5: 419f29acc07ab5d427a3b8b3f0eb61ca
SHA1: 57ddd39e7f376bcba6fe5f0f2ea3b6709550f1f3
June 2017
I’m running out of ideas for this plugin!
Unless there are any more feature requests, this plugin will soon be moving into it’s Pre-Release stage!
Please report any bugs you find as well! Preferably in the Issue Tracker
June 2017
It’s perfect at the moment, you should just wait for suggestions or bug reports 
June 2017
A new version has been released for Sleep Vote, it is available for download here.
The optimization update and first pre-release!
Changelog:
- Removed the default yellow color of the wake up, enter bed, and exit bed messages
- Added support for Minecraft formatting codes in the aforementioned messages. Formatting codes are prefixed with ‘\u00A7’ instead of ‘§’
- Simplified the permission structure for commands
- Changed the configuration file to “configuration.properties” so that it’s less confusing
- Made the ‘status’ command more visually appealing
- Removed the useless “unhide_warning” configuration property in favor of having more succint and straight-to-the-point messages that say the same thing
- Added a similar message for the ‘mute’ command if the server has sounds disabled in the configuration file
- Fixed a bug in which a player was not removed from votes when they got out of bed using unconventional methods
- Improved performance
Made for Sponge API 5.1.0
Forward compatible up to Sponge API 6.0.0
(May not work with the upcoming PR merges for Sponge API 7)
Checksums
MD5: 3ea53c88d5495294b386066c60b40887
SHA1: ba68aadc47bfcc51135f188044c0ee1135b50109
February 2018
A new version has been released for Sleep Vote, it is available for download here.
Sorry for the long delay since the last update.
If you’re looking for big new features, it’s not here (yet).
However, this version fixes a few things (like making it work for Minecraft 1.12) and ignoring vanished players.
Changelog:
- Versioning no longer has the -PRE-RELEASE tag. It’s been around for quite a while without any major bugs.
- Using a new versioning format: a.b.c-Sx.y. “a” changes when the old config no longer works. “b” changes when new features are added that don’t break the old config. “c” changes as bug fixes are added. “-Sx.y” means this version is built around Sponge API x.y
- Update to Sponge API 7.x (for Minecraft 1.12.x) thanks to BrainStone’s Contribution
- Exclude vanished players from sleep voting