Skip to content

TasfiqSami/TasfiqUnloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


Logo

Tasfiq Unloader

An awesome minecraft plugin that unloads Loaded chunk in your minecraft server
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Plugin
  2. Getting Started
  3. Contact

About This Plugin

Title

This is a very simple plugin. It will reduce CPU usage to about 0-1% when no players are online on the server. This can be used for a lot of purposes.

Note that this plugin will only be useful for small servers that tend to be empty at night or during schooldays. If you've got 500 players, the plugin will never "enable" and will not make any difference.

Features:

  • Save electricity (if you host the server)
  • Let other software use the CPU when no one is playing Minecraft.
  • Allow more servers to run on your machine
  • Works for all versions of Craftbukkit or Spigot
  • Very lightweight plugin. Does not cause any lag at all. 😄

How does this work? The plugin will intentionally "lag" your server while no players are connected. You can see it as freezing the server. It'll make it dormant until a player connects.

Command (since version 1.02) You can use /hibernate to toggle the plugin off (and on again) this may be useful in situations where you have to generate a world while no players are online or something similar. Does not save over reload/restart! Enabled by default. You have to be OP or have this permission to use the command: tasfiqunloader.toggle

Caveats:

  • The first player to join the server while it is hibernating might have to try to connect twice. In most cases this is not needed, but it is possible
  • Since Hibernate "freezes" the server, plugins like Dynmap will stop working when no players are connected (for Dynmap specifically an advanced workaround could be to not use the built in webserver, but use your own)
  • Plugin won't help if your server is never empty
  • Because of the hibernation, can't keep up messages might show up in your console.
  • While the server is hibernating, your TPS will go down (intentionally). If you have plugins that monitor TPS, these might report issues during hibernation and for a few minutes after due to them using averages of the past X minutes.

(back to top)

Server with no players online

Example

Server with no players online and TasfiqUnloader is installed

Example

Built With

(back to top)

Installation

Download this plugin from the Releases

After downloading it put it in your plugins folder and restart your server and you are done.

(back to top)

Contact

Tasfiq - Discord - tasfiq@programmer.net

Project Link: https://github.com/TasfiqSami/TasfiqUnloader

(back to top)

About

Unloads the loaded chunk in your minecraft server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages