Skip to content

Commit 807d075

Browse files
parkervcpDaneEveritt
authored andcommitted
Replace Spigot with Paper (pterodactyl#1501)
Replace Spigot as the default server with plugin support with paper. Paper can be freely downloaded without the need to build the server jar every time. This egg still allows for the download like to be supplied to download whatever jar a user wants.
1 parent 04fb5de commit 807d075

File tree

2 files changed

+63
-54
lines changed

2 files changed

+63
-54
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v1"
5+
},
6+
"exported_at": "2019-02-27T22:23:55-05:00",
7+
"name": "Paper",
8+
"author": "parker@pterodactyl.io",
9+
"description": "High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.",
10+
"image": "quay.io\/pterodactyl\/core:java",
11+
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
12+
"config": {
13+
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"server-port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
14+
"startup": "{\r\n \"done\": \")! For help, type \",\r\n \"userInteraction\": [\r\n \"Go to eula.txt for more info.\"\r\n ]\r\n}",
15+
"logs": "{}",
16+
"stop": "stop"
17+
},
18+
"scripts": {
19+
"installation": {
20+
"script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n VER_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | IN($VERSION)' | grep true`\r\n LATEST_PAPER_VERSION=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r '.versions' | jq -r '.[0]'`\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest paper version\"\r\n MINECRAFT_VERSION=${LATEST_PAPER_VERSION}\r\n fi\r\n \r\n BUILD_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true`\r\n LATEST_PAPER_BUILD=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r '.builds.latest'`\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ] || [ ${BUILD_NUMBER} == \"latest\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_PAPER_BUILD}\r\n fi\r\n \r\n echo \"Version being downloaded\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\necho -e \"Downloading MC server.properties\"\r\ncurl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties",
21+
"container": "alpine:3.9",
22+
"entrypoint": "ash"
23+
}
24+
},
25+
"variables": [
26+
{
27+
"name": "Minecraft Version",
28+
"description": "The version of minecraft to download. \r\n\r\nLeave at latest to always get the latest version. Invalid versions will default to latest.",
29+
"env_variable": "MINECRAFT_VERSION",
30+
"default_value": "latest",
31+
"user_viewable": 1,
32+
"user_editable": 0,
33+
"rules": "nullable|string|max:20"
34+
},
35+
{
36+
"name": "Server Jar File",
37+
"description": "The name of the server jarfile to run the server with.",
38+
"env_variable": "SERVER_JARFILE",
39+
"default_value": "server.jar",
40+
"user_viewable": 1,
41+
"user_editable": 1,
42+
"rules": "required|string|max:20"
43+
},
44+
{
45+
"name": "Download Path",
46+
"description": "A URL to use to download a server.jar rather than the ones in the install script. This is not user viewable.",
47+
"env_variable": "DL_PATH",
48+
"default_value": "",
49+
"user_viewable": 0,
50+
"user_editable": 0,
51+
"rules": "nullable|string"
52+
},
53+
{
54+
"name": "Build Number",
55+
"description": "The build number for the paper release.\r\n\r\nLeave at latest to always get the latest version. Invalid versions will default to latest.",
56+
"env_variable": "BUILD_NUMBER",
57+
"default_value": "latest",
58+
"user_viewable": 1,
59+
"user_editable": 0,
60+
"rules": "required|string|max:20"
61+
}
62+
]
63+
}

database/seeds/eggs/minecraft/egg-spigot.json

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)