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 Jun 14, 2013Say, when Java starts to run out of memory and CPU because other plugins are screwing around, should Sleep start throwing out exceptions/errors? If it does, I would know why I'm getting this error. If not, then I'm at a loss.
-
View User Profile
-
Send Message
Posted Jun 3, 2013It appears I get this error... but I've done no testing so I'm not sure what the nature of the issue is. I'll get back to you as soon as I have time to snoop around.
-
View User Profile
-
Send Message
Posted May 16, 2013@ken_cinder
Sleep doesn't have any wildcard nodes, so that shouldn't have any effect on this Sleep plugin. With the latest version (7.1.0) I just realized I haven't updated the documentation yet. I changed
sleep.ignoreto instead usesleep.consider. Try settingsleep.considerto false for you. That said,sleep.ignoreset to true should still work since it is now just an alias to setsleep.considerfalse.Can you post both your /plugins/Sleep/config.yml and whatever permissions configuration you have? Maybe I can help piece it together for you.
-
View User Profile
-
Send Message
Posted May 16, 2013sleep.ignore doesn't seem to be working for me. With a straight up wildcard * everything else is, including forcing sleep if I hop into a bed, but it's still counting me as a required player for sleep. If I add sleep.ignore as well, nothing changes.
Edit: Appears one is ignored while in Creative mode, and the wildcard seems to mess this up. Adding -sleep.ignore doesn't work, and I'm not using Essentials either. Not sure what to do here, as I keep this account on Creative to oversee things.
-
View User Profile
-
Send Message
Posted May 2, 2013I've been dreaming* for a plugin like this since beds were implemented back in beta 1.3, it just features everything I could possibly desire and more (the underground option is really spot on). I wish I could donate (really broke right now) so I'll just thank you a lot, man!
*pun intended
-
View User Profile
-
Send Message
Posted Apr 20, 2013@TheRamiru
I created a ticket to track your information.
Please see my comment at http://dev.bukkit.org/server-mods/sleep/tickets/5-npe-on-idle-update/ for a possible solution.
-
View User Profile
-
Send Message
Posted Apr 20, 201315:23:10 [WARNING] [Sleep] Task #87097 for Sleep v7.0.1 generated an exception
java.lang.NullPointerException
at edgruberman.bukkit.sleep.modules.Idle.update(Idle.java:59)
at java.util.Observable.notifyObservers(Observable.java:159)
at edgruberman.bukkit.playeractivity.IdlePublisher.publish(IdlePublisher.java:67)
at edgruberman.bukkit.playeractivity.IdleChecker.run(IdleChecker.java:35)
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:58)
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:508)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:471)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:403)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
15:23:10 [WARNING] [Sleep] Task #87098 for Sleep v7.0.1 generated an exception
java.lang.NullPointerException
at edgruberman.bukkit.sleep.modules.Idle.update(Idle.java:59)
at java.util.Observable.notifyObservers(Observable.java:159)
at edgruberman.bukkit.playeractivity.IdlePublisher.publish(IdlePublisher.java:67)
at edgruberman.bukkit.playeractivity.IdleChecker.run(IdleChecker.java:35)
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:58)
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:508)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:471)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:403)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 2, 2013I haven´t test all features yet but Sleep v7.0.1 works fine with 1.4.7 R1.0. Thank you.
-
View User Profile
-
Send Message
Posted Mar 28, 2013Thanks for the fast reply. I´ll test it tomorrow and let you know if sth doesn´t work.
-
View User Profile
-
Send Message
Posted Mar 28, 2013@re3ell
Yes, it should be. To be honest, I did not test, but I'm familiar enough with the logic changes that I'm assuming it's easily compatible. If you find anything wrong, just let me know, I'll support it.
-
View User Profile
-
Send Message
Posted Mar 28, 2013Thanks for this great update. Is the latest version still compatible with 1.4.7?
-
View User Profile
-
Send Message
Posted Feb 22, 2013@re3ell
Yes. I've even created a ticket to remind myself to do it: http://dev.bukkit.org/server-mods/sleep/tickets/2-dynamically-adjust-rate-of-night-based-on-number-of/ It should integrate easily as an option into this plugin.
I just need to find some time to sit down and do it. Hoping I can tackle both requests in the next week or so at most.
-
View User Profile
-
Send Message
Posted Feb 22, 2013Have you already looked into the feature BetterSleep supported? Are you going to implement it into this plugin or at least create an other plugin for it?
-
View User Profile
-
Send Message
Posted Feb 6, 2013@richboos
I see the BetterSleep plugin did that, but is now out of date/unsupported. I'll look into adding that feature.
-
View User Profile
-
Send Message
Posted Feb 6, 2013-
View User Profile
-
Send Message
Posted Feb 6, 2013@re3ell
Do you have the PlayerActivity plugin manually installed? If you aren't using that plugin specifically, just delete /plugins/PlayerActivity.jar and you should then be good to go. The Sleep plugin is designed to update its own local utility jar for those classes under /plugins/Sleep/PlayerActivity.jar if you haven't manually installed PlayerActivity.
However if you do use features of the PlayerActivity plugin explicitly, you'll need to update that plugin to v4.1.0 or later. http://dev.bukkit.org/server-mods/playeractivity/files/4-player-activity-v4-1-0/
-
View User Profile
-
Send Message
Posted Feb 6, 2013@EdGruberman
Thanks. But i actually got an error.
When starting this version, the console says:
[Sleep] Enabling Sleep v6.1.1
[Sleep] Disabling plugin; Dependencies not met.
No folder is created.
my bukkit: MCPC+ (Tekkit Lite) with CB 1.4.7 R 0.2
-
View User Profile
-
Send Message
Posted Feb 6, 2013@re3ell
Yes, but you'll need to update to v6.1.1: http://dev.bukkit.org/server-mods/sleep/files/7-sleep-v6-1-1/
With v6.1.1 if you set the message in language.yml to an empty string (using only two single quote characters), it won't display at all. So to get rid of the enter and leave messages you'd set them like:
enter: ''
leave: ''
-
View User Profile
-
Send Message
Posted Feb 6, 2013Is there a way to disable certain messages? Or at least all?
I do not like my chat to be full of "Player x is sleeping,..." also that might be important for some other servers.
-
View User Profile
-
Send Message
Posted Feb 4, 2013@PEZA0
I'm unable to reproduce your issue. When I right click on a bed in the day time it gives me the standard Minecraft message of "You can only sleep at night" and does not let me enter the bed. No other messages result.
What other plugins do you use?