Skip to content

Commit

Permalink
Ready!
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLighty committed Nov 16, 2023
1 parent 236bc41 commit a19a678
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

An egg used to run Dragonfly inside of Pterodactyl.

> Dragonfly is a Minecraft Bedrock Edition server software written in Go. More information can be found on their GitHub [repository](https://github.com/df-mc/dragonfly) and their [Discord server](https://discord.gg/U4kFWHhTNR)
> Dragonfly is a Minecraft Bedrock Edition server software written in Go. More information can be found on their GitHub [repository](https://github.com/df-mc/dragonfly) and their [Discord server](https://discord.gg/U4kFWHhTNR)
## Installation

Just import the egg.json file into your Pterodactyl panel and you're good to go! The script and Docker image will be automatically updated on each server start.
6 changes: 3 additions & 3 deletions egg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-11-16T09:24:36-05:00",
"exported_at": "2023-11-16T10:46:21-05:00",
"name": "Dragonfly",
"author": "[email protected]",
"description": "A Go egg optimized to run Dragonfly, a Minecraft Bedrock Edition server software written in Go. The installer will compile the cloned repository given by the GitHub URL variable",
"features": null,
"docker_images": {
"golang:bullseye": "golang:bullseye"
"ghcr.io\/imlighty\/dragonfly-pterodactyl:main": "ghcr.io\/imlighty\/dragonfly-pterodactyl:main"
},
"file_denylist": [],
"startup": "wget -O - https:\/\/raw.githubusercontent.com\/imlighty\/dragonfly-pterodactyl\/main\/startup.sh | bash",
"startup": "curl -s https:\/\/raw.githubusercontent.com\/imlighty\/dragonfly-pterodactyl\/main\/startup.sh | bash && .\/server",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Server running on\"\r\n}",
Expand Down
9 changes: 5 additions & 4 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ echo "machine ${GIT_SERVER} login ${GIT_USERNAME} password ${GIT_PASSWORD}" >> ~

if [ ! -d "src" ]; then
git clone ${GIT_REPO} src
git config pull.rebase false
cd src
git checkout ${GIT_BRANCH} || exit 1
cd ..
Expand All @@ -17,9 +18,9 @@ cd src
go build -o ../server ${MAIN_FILE} || exit 1
cd ..

if [ -f "~/.netrc" ]; then
rm ~/.netrc
if [ -f ".netrc" ]; then
rm .netrc
fi
if [ -f "~/.wget-hsts" ]; then
rm ~/.wget-hsts
if [ -f ".wget-hsts" ]; then
rm .wget-hsts
fi

0 comments on commit a19a678

Please sign in to comment.