HomeJavaMods⚡ BungeePteroPower ⚡ Start/Stop servers when player Join/Leave!
⚡ BungeePteroPower ⚡ Start/Stop servers when player Join/Leave!
ModsJava

⚡ BungeePteroPower ⚡ Start/Stop servers when player Join/Leave!

⬇ Download on Spigot
日本語
BungeePteroPower
[​IMG]

BungeePteroPower is a plugin that can automatically start/stop servers based on the number of players.
It can start and stop servers on the Pterodactyl panel when players join or leave the Bungeecord proxy server.
This helps to save server resources and manage servers more efficiently.




Key Features
[​IMG]

Requirements

Getting Started
  1. Obtain an API key in the Pterodactyl panel.
    • The client API key for Pterodactyl can be found in the "API Credentials" tab on the account page.
  2. Add the plugin to the BungeeCord server and start it.
  3. Configure the Required Settings in the generated plugins/BungeePteroPower/config.yml file.
    Code (Text):

    # Pterodactyl configuration
    pterodactyl:
      # The URL of your pterodactyl panel
      # If you use Cloudflare Tunnel, you need to allow the ip in the bypass setting.
      url: "https://panel.example.com"
      # The client api key of your pterodactyl panel. It starts with "ptlc_".
      # You can find the client api key in the "API Credentials" tab of the "Account" page.
      apiKey: "ptlc_000000000000000000000000000000000000000000"

    # Per server configuration
    servers:
      pvp:
        # Pterodactyl server ID
        # You can find the Pterodactyl server ID in the URL of the server page.
        # For example, if the URL is https://panel.example.com/server/1234abcd, the server ID is 1234abcd.
        id: 1234abcd
        # The time in seconds to stop the server after the last player leaves.
        # If you don't want to stop the server automatically, set it to -1.
        # If you set it to 0, the server will be stopped immediately after the last player leaves.
        timeout: 30
     
  4. Reload the config with the /ptero reload command.
  5. Configure the Permission Settings.
    (You MUST configure permission to use this plugin, otherwise the player will not be able to do anything!)
    You can use either of the following methods.
    • Use a permission plugin like LuckPerms.
      1. For LuckPerms, use the following commands to set permissions:
        Code (Text):

        # The player can start all servers
        /lp user <player_name> permission set ptero.autostart.*
        # The player can start specific server
        /lp user <player_name> permission set ptero.autostart.<server_name>
        # All players can start all servers
        /lp group default permission set ptero.autostart.*
         
        ※ <player_name> refers to the player's name, <server_name> refers to the server name specified in BungeeCord's config.yml.
    • Use built-in permission settings.
      1. Open config.yml.
      2. Add the following settings to the config.yml file.
        Code (Text):

        permissions:
          default:
            # All players can start all server
            - ptero.autostart.*
            # All players can start specific server
            - ptero.autostart.<server_name>
         
        ※ <server_name> refers to the server name specified in BungeeCord's config.yml.
      3. Restart the BungeeCord server.


Usage

Automatic Startup

Manual Start/Stop
<server_name> refers to the server name specified in BungeeCord's config.yml.


Reloading config.yml/Language files


Configuration

The config.yml file includes the following settings, but not all items need to be configured.​


Required Settings

Optional Settings
Using Panels Other Than Pterodactyl

The built-in PowerController supports the following:
In addition to the built-in options, you can add your own custom PowerController by creating an add-on.​
Panel Configuration Items
Permission Settings

BungeePteroPower plugin allows fine-grained control over commands available to players for each server using permissions.​

<server_name> refers to the server name specified in BungeeCord's config.yml.
※ Specify * for <server_name> to apply permissions to all servers.


About Language Files

Source Code

Information for Plugin Developers

About Power Controllers


BungeePteroPower provides a Power Controller API for supporting platforms other than Pterodactyl.
By creating add-ons, you can add power controllers for platforms other than Pterodactyl!

We also welcome pull requests for adding built-in power controllers!
Ideally, we would like to support the following:
  • Power controllers that can start servers locally
  • Power controllers compatible with management software other than Pterodactyl.
    For example, we would like to support the following:
    • PufferPanel
    • Minecraft Server Manager
    • MCSManager
    • MC Server Soft
    • AMP

Creating Add-ons

About Statistics Data

BungeePteroPower collects anonymous statistical data using bStats.
You can find the statistics data here.

bStats is used to understand the usage of the plugin and help improve it.
To disable the collection of statistical data, please set enabled to false in plugins/bStats/config.yml​
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

⚡ BungeePteroPower ⚡ Start/Stop servers when player Join/Leave! is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 1,073 times (via Spigot). Download it and open it directly in the game.

Explore more