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.
@EdGruberman
Thanks, I'll be sure to contribute to the ticket :)
EDIT: I could also test it on my server if need be.
@Wbfw
What plugins do you use? (What is the output of using the /plugins command?)
@Durand1w
Thanks you... But, when I just tried that, I can't solve my problem.
@Wbfw:
Even as Admin or OP you can remove the permission by adding the following permission with a negative sign.
-sleep.enter.force
I added this on our server and it will let you use beds like the players without automatically changing to day. Hope it helps!
sleep.enter.force is this problem?... I don't grant permissions me. Anything!. but I'm OP. With op, I automatically force to sleep. Fix it. please..
fails to load with latest beta build (R0.3)
@xXRoboJackXx
Please read the updates on the ticket: http://dev.bukkit.org/bukkit-plugins/sleep/tickets/9
I think the plan at this point will address your concerns. If not, feel free to reply in the ticket and we can adjust it as appropriate.
@Wbfw
It sounds like you granted yourself the sleep.enter.force permission. Either revoke or deny that permission as appropriate.
My guess is you use a permissions manager plugin where you grant yourself some type of "all permissions" node (*). That is not a best practice. Even PEX warns against it: https://github.com/PEXPlugins/PermissionsEx/wiki/Basic-Permissions-Setup#wiki-kitchen-sink-notes
Sleep potion effect is good!! Is it bug? : I set [config.yml-force enabled: false]. Then, if I am OP and go to bed in night, message(forcing the sun to rise) shows and day comes regardless of other players. / please fix it.
@EdGruberman
Thank you :) I will definitly add it in if you add this in, but I'm starting to like the plugin "Quests" more than "Campaign" So if you do hook it up to a questing plugin, could you make it quests? Or both? Thank you.
@xXRoboJackXx
Great idea! I made a ticket with some more details in it at: http://dev.bukkit.org/bukkit-plugins/sleep/tickets/9/
Could it be possible to add a feature where there is like a 10% you will dream. And you're in a different area until you wake up? Like a quest, if you can also hook it up to a questing plugin like campaign or something?
@Co0sh
Sure, that's possible also. But that doesn't resolve the logic not somehow handling NPCs properly still. The problem lies in that Bukkit doesn't natively support NPCs. It's a hack into CraftBukkit and Minecraft internals. So NPCs sometimes act like Players and sometimes not. They are very unpredictable and non-standard. Logic will have to be determined on how to detect them appropriately and compensated for accordingly.
Maybe you could hook somehow to Citizens and get current NPC list, and then ignore just these nicks or something?
@Co0sh
Right, that would be expected to work. But I've heard of other people having problems with NPC plugins trying to revoke that permission also without success. Again, NPC plugins do some weird things so there may be other logic that needs to be adjusted somewhere else to compensate. I'll have to setup a test environment, isolate the problem in code, then figure out how to resolve. It will just take time. :(
I tried to give my NPCs permission to be skipped when checking for players in beds (-sleep.consider in PEX) but that didn't work. Wouldn't it be easier to fix NPCs this way?
@Co0sh
I always planned to try and look closer at NPC plugins to see how they work and see if I can compensate. I can't promise any timeline on that however. NPC plugins have a tendency to do some really non-standard things and it won't be simple.
Could you make it compatible with Citizens 2? Sleep sees NPC as normal players and won't allow to skip the night with force enabled.
@acidburn0080
Yes. Sleep 7.3.1 is compatible with CraftBukkit 1.7.2.
is this compatible with 1.7.2-R0.2 beta or 1.7.2-R0.3 development build series?