Coder Social home page Coder Social logo

oneplayersleep's Introduction

OnePlayerSleep

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.

Features

  • 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.

Installation

  1. Download the latest release of the OnePlayerSleep plugin.
  2. Place the OnePlayerSleep.phar file in the plugins folder of your PocketMine-MP server.
  3. Restart the server to load the plugin.

Usage

  • 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.

Commands

There are no commands provided by this plugin.

Configuration

There are no configuration options for this plugin.

Note

This is just a silly plugin, i dont intend to fully maintain this as if now. maybe some slight updates here in there

Contributing

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.

License

This plugin is licensed under the GNU License.

To Do

  • Make the task a separate file
  • Clean up code
  • fix day counter

oneplayersleep's People

Contributors

ecstsylove avatar poggit-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.