Dynamic PTerodactyl -- Spin up/down Pterodactyl minecraft servers on demand!
Velocity plugin for on-demand minecraft containers!
Features:
Ideal for communities with servers you don't want to run 24/7 (i.e.: For minigame servers)
I would advise that you make a specific user in your panel to use for your API keys for this! You only need to give this user 'START', 'STOP' and 'RESTART' permissions on a server by server basis.
This is not a matter of plugin functionality but it is always advisable to restrict what your API keys can do to restrict the potential for abuse.
See:
See the following example:
api-url: "https://panel.example.com"
api-key: "apiKeyHere"
default-timeout: 120 # interval between times server's watchdog will check if its empty & online.
startup-timeout: 120 # how long the plugin is willing to wait for a server to start before failing a request.
servers:
survival-example: # this must match the `servers` section of `velocity.toml`
display-name: Survival 2 # This can use minimessage!
uuid: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
watchdog: true # set to false or omit to disable watchdog entirely.
timeout: 120 # watchdog timeout in seconds (default: 120s)
Note that using /dpt reload will not change api-url/api-key, you must restart the proxy in order to do this.
/dptsend <player/all/current> <server> <promptPlayersToJoin/promptMeToSend>/dptsend server <origin server> <destination server> <promptPlayersToJoin/promptMeToSend>/dptserver <destination server> <immediate>dptserver default behaviour should be to prompt when the server is ready. specifying this option will send the player as soon as the servers ready./dptping <server>/dptwd <server> <start/stop>dpt.send Access to /dptserver <destination server>. Give this permission to users ideally (plus specific server permissions)dpt.send.others Send other players on proxy/server (/dptsend <player> <destination>)dpt.send.all Send all players on proxy/server (/dptsend <all/current> <destination>)dpt.send.<server-name> Access to do /dptserver <server-name> and /dptsend <player/all/current> <server-name> where server-name is already configured.dpt.send.anywhere Above permission but for any server.dpt.ping Ping a server.dpt.watchdog Access to /dptwdLicensed under Apache 2.0.