Giter Club home page Giter Club logo

ondemandserver's Introduction

On demand server

BungeeCord plugin to start and stop minecraft servers when players are playing on.

This is a BungeeCord/Waterfall plugin that can execute a command when a player tries to connect to a server that isn't running.

Use case

You have a dedicated server or a VPS and you want to run multiple Minecraft servers on it while keeping the resource usage as low as possible.

Usage

  1. Drop this plugin into your BungeeCord plugin's folder.
  2. Start then stop the proxy once.
  3. Open the plugin's config file and enter your servers address with their commands.
  • Do not put a command that requires user interaction, the process will wait forever!

Current features/functioning

  • Detect if a server is running on the server's port on the local machine.
  • Start the servers if not running.
  • Stops the servers if no players are on after a given delay (in plugin's configuration).
  • Send customized player messages.

Permissions

  • ondemandserver.reload Reload plugin's configuration
  • ondemandserver.report Check running servers

Defects

  • If the proxy crashes, the Minecraft servers might still be running but can't be controlled by the user nor the proxy.
  • Not tested on distant servers.

TODO

  • Fix orphan servers. (Windows only)
  • Test distant servers.
  • Add load balancing feature.
  • Commands:
    • create a server on-the-fly and add it to config file.
      • set an automatic deletion.
      • Permissions:
        • maximum servers per player.
        • maximum auto deletion delay per player.
        • maximum ram per server per player.
    • remove a server from config file (only the servers created on-the-fly).
    • start a server.
    • stop a running server.
  • Web interface to manage servers (plugins, worlds, start/stop, create, monitor, ...).
  • Port to Velocity.

ondemandserver's People

Contributors

quozul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

7ulez

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.