RealSleep
Are you an owner of an RPG server? Or do you want to make your players go to sleep in a more natural and independent way? Here is a fix! RealSleep introduces sleep levels. When you get too sleepy, you start getting the confusion effect. You can do /sleep restore (admins only) or sleep in a bed and wake up to refresh yourself.
Features
- Perfomance-wise!
- Check on others' sleep!
- Restore players' sleep though admin commands!
- It. Just. Works.
Commands
- /sleep Base of all commands.
- /sleep help See command help.
- /sleep check See your sleep level.
- /sleep check <Player name> See others' sleep level
- /sleep restore <Player name> Restore a person's sleep level.
Permissions
- RealSleep.false Never get sleepy. (False)
- RealSleep.check Check own sleep. (True)
- RealSleep.checkOthers Check others' sleep (Op)
- RealSleep.restore Restore sleep (Op)
To-do
- Spout GUI
- Fix bed bug (No pun intended :D )
- Configuration
- Sprinting uses more sleep
- Economy support for restoring sleep
- Multi-world
FAQ
Do reloads affect the data?
No, it won't. Data is saved immediately into a file, so reloads won't corrupt it. :)
What if others won't sleep?
They won't affect you. As long as you are in bed (even not sleeping), the time is counted and will be applied.
Hey, when I am in bed, why don't my sleep increase?
The sleep is counted, but for the sake of performance, the sleep will only be saved when you leave your bed.
Will players be able to abuse this by entering and leaving the bed immediately?
Nope. The 'refreshment' is counted in time, so entering and leaving will just apply no effect at all.
This also has a good side effect of realism, in which people will not be able to just go to sleep at 5AM with a zero sleep level expecting to be completely refreshed for the next day. If you are tired, you need more sleep! :)
Thank you for using this plugin! You are awesome! So here is the source code!
Extra Credits
izak12345678910 Idea :D
tomcat98 SLAPI
@Asip You may want to try out SleepyFeeling by vasil. It was a continuation of the plugin, and it works on 1.5.
PLEASEEEE Revive the plugin this would be awesome for a server like mine. I will even allow you to test it on mine
Yes, I know, I have been "dead". Nowadays I hardly even have time to touch my computer.
@sonicscream
Erm.....
@chrisandthemike
It should be working.... do you have Vault installed? I will look more into it.
@FiddyCraft
You can use AfternoonNap (by Orcem12) on the forums. I will look more into the permissions. Config file is under the to-do list.
As you know, this is my first plugin, so I am still learning the different APIs.... :|
Suggestions: Can you make it so players can lay in bed at any time does this not work for permissions bukkit (cant seem to get any /sleep permissions to work) make it so food restores a little bit of sleep and a config file would be nice
Pex works for my server and i have this plugin
Does this work with pex? If so, the perm nodes are not working for my server.
Put me as a tester ;D lol
@izak1245
Lol, I put you as izak12345678910.
@hoohoo4
Thank you for your support. It should be ready anytime soon now.
Hey my bukkit dev name is izak1245 :p don't know why i did that lol
I have been wanting a plugin like this :D
@lambik
Hi there, this plugin is sleep independent. However for performance issues you will only refresh your sleep ONLY when you exit your bed. Because this is dependent on how long you were in bed (even lying in bed), you can't just go and sleep just before sun rises. :D
Even when they don't go to sleep, they will still eventually go because their display will become SO confusing that they will just suck it up and go to bed. :)
Eeer you know there may be a problem if there will be 10 players on a server and they wont all go sleep...will it still restore my sleep level? Thanks