GithubHelp home page GithubHelp logo

hibernator's Introduction

image

Hibernator

What is it?

Hibernator is a minecraft plugin inspired by Hibernate that will hibernate the server when no players are playing on it

How does it work?

In hibernation, the plugin will lower the server TPS (ticks per second). You can think of it as the plugin creating "fake lag". Hibernation will automatically turn off when a player joins. When all players disconnect, hibernation is enabled again.

Usage

Turn on Hibernator

/hb enable

Turn off Hibernator

/hb disable

Check Hibernator status

/hb status
image

Reload Hibernator

/hb reload

What are the disadvantages?

• Because the server is frozen during hibernation, plugins that run tasks even when players are offline will not work correctly!
e.g. Dynmap won't be able to run its web server during hibernation.
• Your console will be spammed with "Can't keep up! Is the server overloaded?" messages. This can be resolved by changing the warn-on-overload setting to false in bukkit.yml, but note that this will disable all server overload warning messages.

What are the benefits?

• In hibernation CPU usage is reduced to 0-1%
• Saves electricity

Supported platforms

Paper based minecraft servers 1.19.4+
Spigot and Bukkit are not supported!

How to build

Requirements: Git, Maven

Clone this repository
git clone https://github.com/Mandlemankiller/Hibernator.git
Move to the folder
cd Hibernator
Build
mvn package
Done!
The jar is now located in target directory

hibernator's People

Stargazers

 avatar

Watchers

 avatar

hibernator's Issues

Schedule time is invalid

The real schedule time does not match the time specified in the config. Usually the queue starts the game ~20 seconds before the actual time specified. This has probably something to do with BukkitScheduler.

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.