An open API service indexing awesome lists of open source software.

https://github.com/huzvanec/hibernator

Minecraft plugin to save electricity and performance
https://github.com/huzvanec/hibernator

minecraft-plugin

Last synced: 2 months ago
JSON representation

Minecraft plugin to save electricity and performance

Awesome Lists containing this project

README

          

![image](https://raw.githubusercontent.com/Mandlemankiller/Hibernator/master/branding/banner_resized.png)
# Hibernator
## What is it?
Hibernator is a minecraft plugin inspired by [Hibernate](https://www.spigotmc.org/resources/hibernate.4441/) 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](https://raw.githubusercontent.com/Mandlemankiller/Hibernator/master/branding/status.png)
### 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](https://github.com/webbukkit/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](https://git-scm.com/), [Maven](https://maven.apache.org/)


**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