Giter Site home page Giter Site logo

ndsstudio / hibernate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dark-night-base/hibernate

1.0 1.0 0.0 42 KB

A MCDR plugin which hibernates your server when no one's online, and resume it when someone login

License: MIT License

Python 100.00%

hibernate's Introduction

Hibernate

A MCDR plugin which hibernates your server when no one's online, and resume it when someone login

How to use

As a player

  1. Click the button Refresh
  2. If you see the favicon is a bed, nevermind, connect to the server
  3. Since the server is just starting, you may run into a connection error, but please be patient
  4. Wait for a while, and click the button Refresh again
  5. If the favicon has changed, or server status has changed to Old Version!, That means the server is ready! Connect again and enjoy your game!

How it works

When there's no one online, Hibernate will do a count down. If no one login during the count down, then Hibernate will shutdown the server.

When the server is down, Hibernate will act as a FakeServer, which keeps an eye on the MC port, for example, 25565, and start the server when receiving a login request.

The FakeServer will also respond the player's ping request, and change the MOTD, the favicon as shown below.

The ping request we meant here is the request sent by client when the button Refresh is clicked.

Features

  • Basic Features
  • Read Config
  • In game setting
  • Long connection
  • Ping

Reference

hibernate's People

Contributors

sciroccogti avatar

Stargazers

MC_BE avatar

Watchers

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