2018-07-12 04:41:33 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2021-06-11 21:31:17 +08:00
"version" : "PTDL_v1" ,
"update_url" : null
2018-07-12 04:41:33 +08:00
} ,
2021-06-11 23:00:39 +08:00
"exported_at" : "2021-06-11T15:58:50+01:00" ,
2019-03-29 03:17:39 +08:00
"name" : "Spigot" ,
2018-07-12 04:41:33 +08:00
"author" : "support@pterodactyl.io" ,
"description" : "Spigot is the most widely-used modded Minecraft server software in the world. It powers many of the top Minecraft server networks around to ensure they can cope with their huge player base and ensure the satisfaction of their players. Spigot works by reducing and eliminating many causes of lag, as well as adding in handy features and settings that help make your job of server administration easier." ,
2021-06-11 21:31:17 +08:00
"features" : [
"eula"
] ,
2021-01-06 03:39:42 +08:00
"images" : [
2021-06-11 21:31:17 +08:00
"quay.io\/parkervcp\/pterodactyl-images:debian_openjdk-16" ,
2021-01-06 03:39:42 +08:00
"quay.io\/pterodactyl\/core:java-11" ,
"quay.io\/pterodactyl\/core:java"
] ,
2021-06-11 21:31:17 +08:00
"file_denylist" : [ ] ,
2018-07-12 04:41:33 +08:00
"startup" : "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}" ,
"config" : {
"files" : "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}" ,
"startup" : "{\r\n \"done\": \")! For help, type \",\r\n \"userInteraction\": [\r\n \"Go to eula.txt for more info.\"\r\n ]\r\n}" ,
"logs" : "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}" ,
"stop" : "stop"
} ,
"scripts" : {
"installation" : {
2021-06-11 23:00:39 +08:00
"script" : "#!\/bin\/bash\r\n# Spigot Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update \r\napt install -y curl wget git openssl bash\r\n\r\nif [[ \"${DL_VERSION}\" == \"latest\" ]] || [[ \"$(echo ${DL_VERSION} | sed 's\/\\.\/\/g')\" -ge 177 ]]; then\r\n mkdir -p \/usr\/local\/java\/16\r\n curl -Lo java16.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk16-binaries\/releases\/download\/jdk-16.0.1%2B9_openj9-0.26.0\/OpenJDK16U-jdk_x64_linux_openj9_16.0.1_9_openj9-0.26.0.tar.gz\r\n tar -xzvf java16.tar.gz -C \/usr\/local\/java\/16 --strip-components=1\r\n export PATH=\/usr\/local\/java\/16\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java\/16\r\nelse\r\n mkdir -p \/usr\/local\/java\/8\r\n curl -Lo java8.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk8-binaries\/releases\/download\/jdk8u282-b08_openj9-0.24.0\/OpenJDK8U-jre_x64_linux_openj9_8u282b08_openj9-0.24.0.tar.gz\r\n tar -xzvf java8.tar.gz -C \/usr\/local\/java\/8 --strip-components=1\r\n export PATH=\/usr\/local\/java\/8\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java\/8\r\nfi\r\n\r\n## Only download if a path is provided, otherwise continue.\r\nif [ ! -z \"${DL_PATH}\" ]; then\r\n cd \/mnt\/server\r\n\r\n MODIFIED_DOWNLOAD=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\n curl -sSL -o ${SERVER_JARFILE} ${MODIFIED_DOWNLOAD}\r\nelse\r\n mkdir -p \/srv\/\r\n cd \/srv\/\r\n \r\n wget https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/lastSuccessfulBuild\/artifact\/target\/BuildTools.jar\r\n \r\n java -jar BuildTools.jar --rev ${DL_VERSION}\r\n\r\n mv spigot-*.jar \/mnt\/server\/${SERVER_JARFILE}\r\nfi" ,
2021-06-11 21:31:17 +08:00
"container" : "debian:buster-slim" ,
"entrypoint" : "bash"
2018-07-12 04:41:33 +08:00
}
} ,
"variables" : [
{
"name" : "Server Jar File" ,
"description" : "The name of the server jarfile to run the server with." ,
"env_variable" : "SERVER_JARFILE" ,
"default_value" : "server.jar" ,
2020-12-07 11:32:15 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2018-07-12 04:41:33 +08:00
"rules" : "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/"
} ,
{
"name" : "Download Path" ,
"description" : "A URL to use to download Spigot rather than building it on the server. This is not user viewable. Use <code>{{DL_VERSION}}<\/code> in the URL to automatically insert the assigned version into the URL. If you do not enter a URL Spigot will build directly in the container (this will fail on low memory containers)." ,
"env_variable" : "DL_PATH" ,
"default_value" : "" ,
2020-12-07 11:32:15 +08:00
"user_viewable" : false ,
"user_editable" : false ,
2018-07-12 04:41:33 +08:00
"rules" : "nullable|string"
2019-03-29 03:17:39 +08:00
} ,
{
"name" : "Spigot Version" ,
"description" : "The version of Spigot to download (using the --rev tag). Use \"latest\" for latest." ,
"env_variable" : "DL_VERSION" ,
"default_value" : "latest" ,
2020-12-07 11:32:15 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2019-03-29 03:17:39 +08:00
"rules" : "required|string|between:3,7"
2018-07-12 04:41:33 +08:00
}
]
2021-06-11 21:31:17 +08:00
}