OnePlayerSleep is a plugin for PocketMine-MP that allows a single player to skip the night and set the time to day by sleeping in a bed.
- If only one player is online and they are sleeping, the time will be set to day.
- If multiple players are online, a sleep task will be started, and when the task completes, the time will be set to day.
- The plugin provides notifications and messages to players during the sleep process.
- Download the latest release of the OnePlayerSleep plugin.
- Place the
OnePlayerSleep.phar
file in theplugins
folder of your PocketMine-MP server. - Restart the server to load the plugin.
- When a player enters a bed, they will start sleeping.
- If only one player is online and sleeping, the time will be set to day.
- If multiple players are online and one player is sleeping, other players will be notified that a player is sleeping.
- After a certain delay, if the player is still sleeping, the time will be set to day.
- If the player wakes up before the delay, they will be notified and the time will remain as it is.
There are no commands provided by this plugin.
There are no configuration options for this plugin.
This is just a silly plugin, i dont intend to fully maintain this as if now. maybe some slight updates here in there
Contributions are welcome! If you have any bug reports, feature requests, or improvements, please create an issue or submit a pull request on the GitHub repository.
This plugin is licensed under the GNU License.
- Make the task a separate file
- Clean up code
- fix day counter