Code Monkey home page Code Monkey logo

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

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.