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.
when u try to sleep in day, the plugin he count / shows u are sleep and reduze de count for sleep. but its day time u can't sleep.
@EdGruberman
Tekkit is still stuck on 1.2.5, and for a small tekkit server between a couple of friends, I'd love to use your plugin. Thanks a ton!
EDIT: However, it doesn't seem that 6.0.0 works with it. Thanks for the help though!
EDIT2: BUT! 5.1.0 works. Thank you so much, excellent plugin.
@redhand0421
You can look through http://mc.rjump.com/personal/EdGruberman/Bukkit/plugins/Sleep/ but to be honest, I'm not even sure what works and doesn't work in those older versions anymore.
Why are you stuck on 1.2.5?
Actually 6.0.0 might work for 1.2.5. I think that was the only official release around that version's time... have you tried that?
http://dev.bukkit.org/server-mods/sleep/files/2-sleep-6-0-0/
Where can I find a minecraft 1.2.5 version of this plugin?
@geekaphobia
No. Sleep is handled independently for each world. (e.g. If all players in world1 are sleeping, only world1 will go to day time. Players in world2 won't affect anything in world1.)
Does this plugin also force players in other Multiverse worlds to sleep? (i.e. if I wanted to sleep in world1, it wouldn't skip to day until people in world2 were in bed)
@Roalith
My pleasure! And a big Thank You to you also for helping supply all the necessary information we needed to resolve this. I hope you enjoy your Sleep! :)
Thanks! That seems to have done the trick...I didn't realize that Essentials treated Ops to a sleep ignore feature, and I made sure not to give admins the '*' permission to help prevent plugin issues later on...Thank you very much for taking time to sort me out!
@Roalith
You'll need to set - -essentials.sleepingignored in your permissions for your admins to set the essentials.sleepingignored permission to false. Apparently Essentials sets that permission for ops by default. Then Essentials sets you to ignore sleep based on that permission. :(
Some Sleep-related things from my log. Sorry such a long post! Also, I can get you a list of plugins:
http://pastebin.com/inaSQuBv
And for other sleep entries it does have entries in the log for loading and enabling sleep of course!
@Roalith
Okay, so if you don't see any entry like the following between the add and enter:
[FINEST] [Sleep] [world] Setting Roalith (Ignored: false) to ignore sleep (reason)
and no other [Sleep] related entries between the add and enter, then you have another plugin setting you to ignore sleep.
What are all the plugins you have running on your server?
2012-12-06 19:02:30 [FINEST] [Sleep] [world] add: Roalith (Ignored: false)
2012-12-06 19:03:18 [FINEST] [Sleep] [world] add: Raziele (Ignored: false)
2012-12-06 19:03:22 [FINEST] [Sleep] [world] enter: Roalith (Ignored: true)
2012-12-06 19:03:34 [FINEST] [Sleep] [world] leave: Roalith (Ignored: true)
2012-12-06 19:03:46 [FINEST] [Sleep] [world] enter: Raziele (Ignored: false)
This was pulled from the FTP .log file instead of the normal console. When I logged in it added me as Ignored: false but when I sleep it has me Ignored: true...
@Roalith
Ah Multicraft... their console does alter things from normal a bit. You might have to FTP in to get your server.log file to find the entries: http://www.multicraft.org/site/docs?view=console
@EdGruberman
craftbukkit-1.4.5-R0.3.jar
Multicraft console.
@Roalith
Your YAML syntax looks fine. Also, I don't see you actually giving just the "*" node so you should be fine there also and I wouldn't imagine you should have to negate the sleep.ignore node.
I'm specifically looking for entries like the following:
[FINEST] [Sleep] [world] add: Roalith (Ignored: false)
[FINEST] [Sleep] [world] Setting Roalith (Ignored: false) to ignore sleep (reason)
Lastly, your server log format looks odd to me. Are you using something other than the native CraftBukkit build? I'm not sure why it says [Server] and doesn't have brackets around the log level in the entry and why it's missing the [Sleep] plugin prefix also.
To further clarify I don't want the plugin to make it day with just an admin in bed, I want it to always respect a 50% population must be in bed to make it day ruleset, regardless of whether you are players or admins!
Here are some things from console: "06.12 12:51:51 [Server] WARNING Could not save config.yml to plugins/Sleep/config.yml because config.yml already exists." - I shut down the server, deleted my sleep.jar and sleep folder inside /plugins and did a fresh install of the plugin and still have this error in console (though it doesn't seem like it would effect anything).
"06.12 12:56:42 [Server] FINE [WORLD%world(2)] §812:56:42 Raziele§8 entered bed (§5no more needed§8)
06.12 12:56:42 [Server] FINEST [world] enter: Raziele (Ignored: false)
06.12 12:56:27 [Server] FINEST [world] leave: Roalith (Ignored: true)
06.12 12:56:23 [Server] FINEST [world] enter: Roalith (Ignored: true)"
Pastebin of PermissionsEX: http://pastebin.com/VDdLWjp7
Ran this through 3 YAML parsers/checkers with no errors, but I am open to suggestions as I have been out of the Minecraft scene for quite some time :)
@Roalith
Interesting it doesn't force sleep when an admin enters though if you haven't removed sleep.enter.force also... Makes me think there are quite a few things going on that don't make sense in your case.
Try enabling logLevel: ALL in your /plugins/sleep/config.yml file and restart (or /sleep:reload if you can't restart). Then see what your server log says when an player in the admins group joins and enters a bed.
Are you running any other plugins that might set a sleeping ignored state? What plugins are you running this with?
The problem is that an admin lays in bed and it does not change to day or make a Sleep plugin announcement saying that they are in bed and x amount more are needed. Admin goes to bed, nothing happens. My daughter goes to bed, Sleep announces that she is in bed and no more are needed. Same with my friends, admins are just not seen by the plugin/ignored. So I thought that - -sleep.ignore would be the way to go or - sleep.ignore: false
If need be I can paste in permissions later when I get access.
@Roalith
What exactly is happening? If your admins are entering bed and they force sleep to occur automatically, make sure you also remove the sleep.enter.force permission.
Otherwise I'll probably need you to post your whole permissions file (use something like http://gist.github.com) so I can setup a duplicate test here and see if I can get the same problem.
Thanks! I do use PEX, and setting sleep.ignore: false or - -sleep.ignore does not work for me (admins are still ignored by sleep). Other permissions for other plugins are working fine with the - - layout of the : false, I just have not been able to get sleep to work out for some reason...Here is a bit of what I have in my permissions this morning(I don't have the * except for the permissions all itself):
admins: permissions: - permissions.* - -mobcatcher.op.catchchance - -mobcatcher.op.ignoreprotection - -mobcatcher.op.ignoreconfig
Sorry for the sloppy formatting, the spacing is proper etc in the config though!