GithubHelp home page GithubHelp logo

vincss / mcemptyserverstopper Goto Github PK

View Code? Open in Web Editor NEW
44.0 1.0 4.0 9.03 MB

Stop your minecraft server when no one is connected

Home Page: https://www.spigotmc.org/resources/emptyserverstopper.19409/

Java 100.00%

mcemptyserverstopper's Introduction

Minecraft Plugin : Empty Server Stopper

This plugin will stop your server after a defined amount of time when the last player leaved.

Compatible with version from 1.13 to latest ( 1.19+ ).

Tutorial Video : https://youtu.be/WqvQISpr6-s

You can download the latest plugin version : https://github.com/vincss/mcEmptyServerStopper/releases

For Fabrik & Forge versions : https://github.com/GHYAKIMA/emptyserverstopper-mod/releases

Forge version with config file : https://github.com/MadaHaz/SleepingServerStopperMod-Forge-1.20.X/releases

Start the server after closing it : https://github.com/vincss/mcsleepingserverstarter

Spigot Page : https://www.spigotmc.org/resources/emptyserverstopper.19409/

What it does :

Wait for the last player to leave. Trigger at X minutes timers.
After the X minutes, check if no one is connected.
    No one is connected: shutdown the server.
    Someone is connected: cancel the timer.

Install the plugin by putting the .jar file in the plugins / directory of your server

There is a configuration file located in : plugins/EmptyServerStopper/config.yml

Setting Description Default value
ShutdownTime The amount of time in minutes before the plugin shutdown the server after that the last player leaves. 60
ShutdownAtStart If the plugin should launch the timer to shutdown the server right after it starts ( will be canceled if someone connects ) False

The server can be restarted using mcsleepingserverstarter


ChangeLog:

1.1.0:
    Cancel current timer when a player connects
1.0.1:
    To be compatible with older version of Minecraft Server (1.13)
v1.0.0:
    Revert to be compatible with jdk 1.8    
1.16.5 (Only compatible with Java 11+ https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot)
    Updated for latest 1.16.5 version
1.15.1
    Updated for latest 1.15.1 version
v0.3:
    Update to be compatible with 1.9.
v0.2:
    New parameters :
        ShutdownTime: shutdown after x minutes when the last player left.
        ShutdownAtStart: launch the shutdown timer at start.
v0.1:
    Working but not configurable.

Note: To create config file: first start the server, then stop it. Edit the parameters in ".\plugins\EmptyServerStopper\config.yml".

mcemptyserverstopper's People

Contributors

madahaz avatar vincss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mcemptyserverstopper's Issues

Cancel Shutdown Command

Let's say I want to keep the server running but I need to leave the game. The server would shut down after the said time in the config. What if there was a command such as /stayon that would keep the server running for even if it became empty? If you wanted to allow it to shutdown normally you could type /stayon 0 which would revert back to normal.

Added configuration

Is it possible to add a configuration file where you can change the duration, in minutes, before the server shuts down after the last player leaves?

Directly release jar, and not archive

Would be nice for automation not having to unzip
I am preparing a PufferPanel template for sleeping server starter. This would allow me to download from your repo directly and not from my fork that has direct jar in release

Timer isn't stopped when a player joins

Title. For example, last player leaves, starting the hour timer. Someone could join right after but the timer would still be running. That player leaves right before the timer is done, then voila, the server is shutdown despite it being inactive for way less than an hour. Having it so the timer is cancelled when someone joins would be better than checking for a player once the timer is done.

Longest possible timer?

This is a question rather than an issue, but I was wondering, what the longest timer would be. Would it be possible to have it shut down after three days for example? Will the timer still be accurate?

Thanks in advance!

support for standard Minecraft servers?

I was wondering if there will ever be support for standard minecraft servers that don't use anything like paper or bukkit, just the download from the official minecraft page.

Custom Command

It's not really an issue, but I am wondering if it were possible to add a custom command to call at stop, like a backup command to backup at each shutdown ?
I don't know if this is stupid, let me know anyway. thank you !

Forge version?

There is currently no mod to stop automatically a server if no one is connected.

Server stays on when friends forget to join the server.

Can you make the server stopper plugin auto turn off the server even if no one has joined? Sometimes my friends start the server but then go do some other tasks and don't actually join the server. When this happens the server just stays open and the plugin doesnt activate. Can you please add a feature to fix this? Thanks! :)

[Feature] Velocity Support

Hi, first of all I am very thankful for your work on this it works really well and keeps my resources under control :)

I would like to see Velocity support or a velocity version, firstly because i use velocity and because papermc is focusing on velocity and I think it will be the future of Minecraft Proxy’s

I would try to implement it myself but mostly I do not find the time to work on this parallel to my work, family, home lab

Bug: Timer not starting without joining

If I start my Paper server, but nobody joins it, the timer is not started. I would expect the server to stop automatically, even without someone needing to join.
Maybe you could start the timer on plugin activation/server start.

Shutdown after player leaves

Hi, When a player from my server logs of the server shuts down. How can I make it so that goes back to sleep?

Pterodactyl Issue

If you use this plugin on pterodactyl when it attempts to shutdown the server pterodactyl will just restart the server.

EmpyWorldStopper

Would it be possible to do something like this, but for worlds? When no one is in a given world for X minutes, execute the command . I've been looking for such a plugin for a long time, but I can't find it. :(

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.