From 5dbe1f08825a1c0d987c8898cdda0a368b19a99a Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Sun, 14 Jul 2019 20:40:46 -0400 Subject: [PATCH 1/2] Add the velocity mc proxy --- minecraft_proxy/velocity/egg-velocity.json | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 minecraft_proxy/velocity/egg-velocity.json diff --git a/minecraft_proxy/velocity/egg-velocity.json b/minecraft_proxy/velocity/egg-velocity.json new file mode 100644 index 00000000..7bfb6a83 --- /dev/null +++ b/minecraft_proxy/velocity/egg-velocity.json @@ -0,0 +1,45 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2019-07-14T20:36:29-04:00", + "name": "Velocity", + "author": "parker@parkervcp.com", + "description": "Velocity is a Minecraft server proxy with unparalleled server support, scalability, and flexibility.", + "image": "quay.io\/pterodactyl\/core:java", + "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}", + "config": { + "files": "{\r\n \"velocity.toml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"bind = \": \"bind = \\\"0.0.0.0:{{server.build.default.port}}\\\"\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Done (\"\r\n}", + "logs": "{}", + "stop": "shutdown" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\n# Velocity Proxy Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napk add --no-cache curl\r\n\r\nmkdir -p \/mnt\/server\/\r\n\r\ncd \/mnt\/server\/\r\n\r\nif [ -z ${VELOCITY_VERSION} ] || [ ${VELOCITY_VERSION} == \"latest\" ]; then\r\n\tVELOCITY_VERSION=\/lastStableBuild\r\nfi\r\n\r\necho -e \"Getting download link\"\r\nDOWNLOAD_ENDPOINT=$(curl https:\/\/ci.velocitypowered.com\/job\/velocity\/${VELOCITY_VERSION}\/ | grep -Eo 'href=\"[^\\\"]+\"' | grep -vE \"view|fingerprint\" | grep \".jar\" | sed -n 's\/.*href=\"\\([^\"]*\\).*\/\\1\/p')\r\nDOWNLOAD_LINK=https:\/\/ci.velocitypowered.com\/job\/velocity\/lastStableBuild\/${DOWNLOAD_ENDPOINT}\r\n\r\necho -e \"Downloading ${DOWNLOAD_LINK}\"\r\ncurl ${DOWNLOAD_LINK} -o ${SERVER_JARFILE}\r\n\r\nif [ -f velocity.toml ]; then\r\n echo -e \"velocity config file exists\"\r\nelse\r\n echo -e \"downloading velocity config file.\"\r\n curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_proxy\/velocity\/velocity.toml -o velocity.toml\r\nfi\r\n\r\necho -e \"install complete\"", + "container": "alpine:3.10", + "entrypoint": "ash" + } + }, + "variables": [ + { + "name": "Velocity Version", + "description": "The Velocity Proxy version to download.\r\n\r\nset to 'latest ' the download the last stable build.", + "env_variable": "VELOCITY_VERSION", + "default_value": "latest", + "user_viewable": 1, + "user_editable": 0, + "rules": "required|string|max:20" + }, + { + "name": "Server Jar File", + "description": "Server Jar File name", + "env_variable": "SERVER_JARFILE", + "default_value": "velocity.jar", + "user_viewable": 1, + "user_editable": 0, + "rules": "required|string|max:20" + } + ] +} \ No newline at end of file From 3f8dc64647d9521828d0fa9c9a5193e769df3042 Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Sun, 14 Jul 2019 20:56:42 -0400 Subject: [PATCH 2/2] update/add readme's Update the core readme to add velocity. Add a readme for velocity to the folder. --- README.md | 1 + minecraft_proxy/velocity/README.md | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 minecraft_proxy/velocity/README.md diff --git a/README.md b/README.md index 4193e16d..6cab2958 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ If you are reading this it looks like you are looking to add an egg to your serv [Minecraft Proxies](/minecraft_proxy/) (these are for the java version of minecraft) * [Waterfall](/minecraft_proxy/waterfall/) +* [Velocity](/minecraft_proxy/velocity/) [Mount & Blade Warband](/mount_and_blade/warband/) diff --git a/minecraft_proxy/velocity/README.md b/minecraft_proxy/velocity/README.md new file mode 100644 index 00000000..c1c794dc --- /dev/null +++ b/minecraft_proxy/velocity/README.md @@ -0,0 +1,10 @@ +# Velocity Minecraft Proxy +Velocity is a Minecraft server proxy with unparalleled server support, scalability, and flexibility. + +## Server Ports +The minecraft server requires a single port for access (default 25565) but plugins may require extra ports to enabled for the server. + + +| Port | default | +|-------|---------| +| Game | 25565 | \ No newline at end of file