Sleep
[ONELINER:Complete customization for sleep related features (messages, idle players, rewards, force, etc.)]
[ > Features | Commands | Configuration | Permissions ]
- Customizable broadcast messages for all sleep related events
- Ignore idle players from preventing sleep
- Force sleep when minimum percent and/or count of players are in bed
- Customizable reward system for using a bed to pass the night (health, experience, effects, etc.)
- Allow sleeping with a temporary bed that does not affect respawn location
- Ignore underground players below a configurable depth from preventing sleep
- Fast forward night time relative to how many players are in bed
- Disable sleep but still allow a bed to set respawn location
- Always ignore specific players for sleep (bots/admins, uses permissions)
- Force sleep when specific players enter a bed (uses permissions)
- On-demand sleep status with the /sleep command (who is not in bed)
- Force sleep manually with the /sleep.force command (requires permission)
- Full multi-world support
Troubleshooting
If you are having trouble determining why something isn't working, set log-level: ALL in the /plugins/Sleep/config.yml file and restart your server. Wait for the problem to reoccur then paste the server.log file to somewhere like http://gist.github.com and post a comment here with a link to the paste.

-
View User Profile
-
Send Message
Posted Dec 5, 2012@Roalith
Sorry, I should read more carefully. You will want sleep.ignore to be false to treat your admins like any other player.
By default this Sleep plugin won't treat your admins any differently and they should have to use a bed just like all other players. So, my guess is you are giving your admins some type of * permission somewhere else and that is inappropriately giving them sleep.ignore.
It will depend on what permissions plugin you are using as to how to properly configure it. Be aware of warnings like PermissionsEx has regarding usage of the * node. Generally speaking it's almost always better not to use the * node and instead identify specific permissions you want to give out.
-
View User Profile
-
Send Message
Posted Dec 5, 2012So sleep.ignore: true makes it NOT ignore admins for sleep requirements? What I am trying to do is treat admins as normal players for needing to sleep to change to day. Sorry for any confusion.
-
View User Profile
-
Send Message
Posted Dec 5, 2012@Roalith
Setting sleep.ignore to true for your admins is what you are looking for.
If you still have trouble after that I'd need to see your permissions configuration and maybe have you set logLevel: ALL in your /plugins/sleep/config.yml and then look closer at your server.log file to try and determine what is going on.
-
View User Profile
-
Send Message
Posted Dec 5, 2012EdGruberman - Sorry but I seem to be having some problems with getting the Sleep plugin to stop ignoring admins for sleep requirements. I have tried both - -sleep.ignore and - -sleep.* as well as sleep.ignore: false
What am I doing wrong? I am just coming back after over a year off and I am not sure what I am overlooking or doing wrong :)
-
View User Profile
-
Send Message
Posted Nov 23, 2012@sbhouse
My apologies. I thought you were editing the file. Indeed, if the file is being generated automatically and it is still presenting an error, there is something I'm apparently overlooking in my configuration file management.
I'll see if I can download MineOS this weekend and get a test environment setup for myself to witness and troubleshoot the error.
-
View User Profile
-
Send Message
Posted Nov 22, 2012@sbhouse
Hi, look i have Multiverse, Vault, PEX and others 50+ plugins installed in my server with this one and its working fine, this plugin work perfect, i dont know why u get that error cause i dont know anything about Java, but im here to let u know that this plugin its still fine even at 1.4.5
-
View User Profile
-
Send Message
Posted Nov 21, 2012@EdGruberman
I disabled ALL plugins except Multiverse and PermissionsBukkit and Sleep and Vault (because so many plugins depend on it). I deleted the plugins folder for Sleep. I let the Sleep folder (With config.yml) regenerate again. Exact same error. If it's not encoded in the correct format by doing that, then I have to move on. And I can't sacrifice the Multiverse or PermissionsBukkit or Valut plugins, even for testing. Because even if it worked, it wouldn't be worth it.
2012-11-21 03:10:37 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.5-R0.1-b2483jnks (MC: 1.4.5) (Implementing API version 1.4.5-R0.1)
Thanks for trying. I'll keep looking for a plugin that can meet my needs.
-
View User Profile
-
Send Message
Posted Nov 14, 2012@sbhouse
Unless you've made specific world configurations under /plugins/Sleep/Worlds/ it will just be /plugins/Sleep/config.yml
Can you paste your config.yml file up to somewhere like http://gist.github.com/ for me to test with myself?
Also what encoding are you saving your config.yml file as?
Lastly, can you setup a test server in MineOS with just the Sleep plugin perhaps and the -Dfile.encoding=UTF8 system parameter set, and save your config.yml file there as UTF-8 to see if that works at all?
-
View User Profile
-
Send Message
Posted Nov 14, 2012@EdGruberman
I'm actually using CRUX Linux (MineOS CRUX to be specific - mineos.codeemo.com).
Unfortunately, the version of linux doesn't have a utility installed to determine charset. Are we talking about just the config.yml inside the /plugins/Sleep/ folder? Or could it be other files?
- SBHouse
-
View User Profile
-
Send Message
Posted Nov 13, 2012@sbhouse
If you are on Windows, your YAML configuration files need to be saved as ANSI (windows-1252/Cp1252).
If you are on Unix, you need to save them as UTF-8.
My hunch is you are on Windows and you saved as UTF-8 because you have some special characters that ANSI wouldn't save properly? If that's the case, your options get tricky. The overall "best" approach will probably be to start the Java VM with a parameter to force the default encoding to UTF-8. HOWEVER, please head my warning that this has the potential to destroy all your existing configuration files initially. If you are lucky, all your plugins will be coded smart enough to compensate. However, chances are something will go bad somewhere.
How to change your default encoding for configuration files to UTF-8 Please ensure you make a proper backup of everything before
Hope this helps clarify a bit. Let me know any specifics and I can try to help you through this. I wish I could make it easier somehow... I think I'll try to add a message to hopefully clarify this into the plugin also.
-
View User Profile
-
Send Message
Posted Nov 13, 2012I get this when I try to use Sleep:
[INFO] This server is running CraftBukkit version git-Bukkit-1.4.2-R0.2-b2455jnks (MC: 1.4.2) (Implementing API version 1.4.2-R0.2)
-
View User Profile
-
Send Message
Posted Oct 4, 2012@disturbedpigeon
Have you tried configuring your /plugins/Sleep/config.yml file to contain the following?
The Configuration page explains this a bit more.
You will need to issue a
/sleep:reloadcommand (or restart your server) after you edit your config.yml file.-
View User Profile
-
Send Message
Posted Oct 4, 2012I can't figure out how to configure it so that only one person has to sleep to make it day. No matter what I do it keeps saying I need another person. Help?
-
View User Profile
-
Send Message
Posted Sep 30, 2012I did that and the answer is 50% of the users, so maybe just happen rarely, im not having issues get, is a great plugin and my users really love it, thx.
-
View User Profile
-
Send Message
Posted Sep 27, 2012@WingedSpear
Try setting your /plugins/Sleep/config.yml
logLevel: CONFIGvalue and then reload to see what the console logs that it is set to after a /sleep:reload command.Also make sure you are setting
enabled: trueunder theforce:section.-
View User Profile
-
Send Message
Posted Sep 27, 2012Seems like the command /sleep:reload dont work at all, it reset the % of players in bed, i set it to 50% and after reload it asked me for 100%
-
View User Profile
-
Send Message
Posted Sep 26, 2012Seems like that one its working perfect, and ya, the way how we can change the msg's of the plugin is so perfect, i like how i changed them also this plugin will be really important on my server cause will have the PVP enabled at the night so if the most of the players hate pvp they just sleep and done.
too sad im having huge lag issues with Minecraft since 1.3, like 1 min of delay in my steps sound and chat refresh, i didnt has these issues at 1.2.5...i just hope 1.4 fix everything.
-
View User Profile
-
Send Message
Posted Sep 24, 2012@WingedSpear
I just put another beta (6.1.0b3) up. It now has a
colorCode: '§'configuration value you can use to change the color code character with. You can change that to'&'for instance and then change all the§characters to&.My number one pet peeve with most plugins is when authors think they know how everyone wants their messages to look or are simply too lazy to provide a customization option. I really want to make message customization easy for everyone. I originally figured using the native section sign character was the smartest to keep everything basic and predictable. However, you highlighted a clear usability problem with that choice. Some environments may not make it easy to interact with unicode characters. Now you can have a choice how you want to do it.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@WingedSpear
Ah, this makes a bit more sense. So, do you edit the config.yml file locally on your computer and not the server then and then upload through FileZilla? Or does TCAdmin provide some text editor interface?
If you edit locally on your computer and it's Windows and perhaps you are using Notepad? Make sure you save the file as UTF-8 (File > Save As... > Encoding = UTF-8). Then also make sure FileZilla is uploading the file as a binary file. (I think you can right click the binary/ascii indicator in the status bar to change it.) This will prevent FileZilla from trying to interpret the encoding itself and making assumptions.
If it's a custom TCAdmin text editor, there might be some choice there or that may not be usable if it's not able to let you choose what encoding and then you'll have to do a Notepad/FileZilla solution instead.
-
View User Profile
-
Send Message
Posted Sep 23, 2012@EdGruberman
Well i lack of the entire info, but maybe this can help, i use a TCAdmin, a Control Panel handled in my browser, and i insert the files with FileZilla and then i just run the server, thats what i do, i think the only plugins who are working fine with colors are the ones with ''&'' like AutoAnnouncer, DeathNotifier, Essentials and others..., but i have this issue with plugins like Citizens, FishingTournament and this one.