Sleeper
Sleeper
------------------------------
Ever have that annoying person on your server that refuses to sleep at night?
Well with Sleeper that person is no longer a problem.
As long as a configurable percentage of players are sleeping the time will be reset to a configurable time and a configurable message will be sent out to all players in that world.
------------------------------
Install:
- Download the jar file and place it into your server's plugin directory.
- Start/Restart/Reload the server to generate the configuration file
- Edit configuration file, then Start/Restart/Reload
Please note that for each updated version a new configuration file might need to be generated. You can do this by simply deleting the old file and Starting/Restarting/Reloading the server.
------------------------------
To do:
- Anything that you'd want to see in the plugin (just send me a pm/comment on this project)
------------------------------
Important Notes:
- Sleeper is already 100% configured and ready to handle player UUID's upon the Minecraft 1.7.6+ updates! This means that no matter how many times a player changes their name, Sleeper will be perfectly capable of handling everything!
- Some people are confused as to what the DreamSatchel really is so I'll sum that up right here. The DreamSatchel is an inventory that is only opened when player change a world's time through the Sleeper plugin. This inventory will store any and all items to a file for each player.
------------------------------
Commands:
- Sleeper -> Gives useful information about the plugin.
------------------------------
Permission Nodes:
- sleeper.command -> Allows the use of /sleeper for information about the plugin.
- sleeper.notify -> Sends the player a message, upon joining the server, of whether or not an updated Sleeper file is available.
- sleeper.dreamsatchel -> Upon changing the time from the Sleeper plugin, will open the player's DreamSatchel.
------------------------------
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/PluginMetrics/config.yml and changing opt-out to true.
@Pocketkid2
For my personal server I got tired of not having enough space in my enderchest and wanted to make another version of it. So I did with DreamSatchel's. If you personally do not like them then please feel free to turn them off in the config.yml file that is generated in the Sleeper folder.
What is the purpose of the Dream Satchel? it seems kinda pointless...
@Ryex95
I can add the requested feature whenever you would like, please check your private messages for a message from me.
Can you add a feature that instead of showing in the chat (#sleepers/#players) it could just say how much sleepers needed for time set to day?
@Stormbow
The time only changes if two people are on the same world and sleep. Also you must have the Dream Satchel config either not yet generated or misconfigured. If it is not generated then you must re-generate the configs file. And make sure that the proper permissions are given.
You don't mention anything about what the "DreamSatchel" is on your plugin's Overview page, and have no other pages listed. I slept. Time was set to morning. Nothing "opened". I wasn't told that the time changed. (Cb 1.7.2-R0.3)
Version 1.2.1 has been uploaded and fixes a large bug with the config.yml not working.
@spirekill
I am currently trying to debug the plugin and see what is going wrong for you. I have work tonight but will update ASAP.
We got a problem on our server with this plugin, we set the percentage to 25 but it still needed 4 of 4 people to skip the night. Now we tested with 2 people and set the percentage to 0, we needed only one of us to skip, but of cause we dont want to skip night if only one person sleeps on the server.
I hope you can help us, we are using the latest 1.7.2-R0.3 server jar
@MightyFlyRudy
Yeah, no problem. I like making plugins that can be for Vanilla-ish servers too, it's fun for me to help other people out as well.
Haha, cool. I've been looking to change my sleeping plugin for a while now.
@MightyFlyRudy
Sure thing! I'll add that now, upload it to Bukkit and send you a message.
That would be wonderful :)
@MightyFlyRudy
The message is not configurable but I can make it configurable if you'd like.
Is there a configurable message broadcasted for when the night is skipped by sleeping?
@mmuziek
Yes it announces when players enter bed and remaining amounts. It sets the time to a configurable time when a configurable percentage of players are sleeping.
does this plugin announce when someone enters their bed. and says how much players remaining until the server force the day
or add the fast forward the time when like 30% is sleeping and when 60% is sleeping force it day
Tips and/or suggestions?