mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-23 04:52:52 +08:00
fix: fixed nanolimbo now pulling latest config (#1574)
This commit is contained in:
parent
70d6cebce5
commit
18c59cd8fc
@ -4,7 +4,7 @@
|
|||||||
"version": "PTDL_v1",
|
"version": "PTDL_v1",
|
||||||
"update_url": null
|
"update_url": null
|
||||||
},
|
},
|
||||||
"exported_at": "2021-11-28T04:47:00+01:00",
|
"exported_at": "2022-03-02T18:33:43+01:00",
|
||||||
"name": "NanoLimbo",
|
"name": "NanoLimbo",
|
||||||
"author": "mail@wuffy.eu",
|
"author": "mail@wuffy.eu",
|
||||||
"description": "This is lightweight minecraft limbo server, written on Java with Netty. The main goal of the project is maximum simplicity with a minimum number of sent and processed packets. This limbo is empty, there are no ability to set schematic building since this is not necessary. You can send useful information in chat or BossBar.\r\n\r\nNo plugins, no logs. The server is fully clear. It only able keep a lot of players while the main server is down.",
|
"description": "This is lightweight minecraft limbo server, written on Java with Netty. The main goal of the project is maximum simplicity with a minimum number of sent and processed packets. This limbo is empty, there are no ability to set schematic building since this is not necessary. You can send useful information in chat or BossBar.\r\n\r\nNo plugins, no logs. The server is fully clear. It only able keep a lot of players while the main server is down.",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"installation": {
|
"installation": {
|
||||||
"script": "#!\/bin\/bash\r\n# NanoLimbo Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update\r\napt install -y curl jq git openssl bash bc apt-transport-https gnupg software-properties-common\r\n\r\nif [ -z \"${DOWNLOAD_URL}\" ]; then\r\n GITHUB_PACKAGE=\"Nan1t\/NanoLimbo\"\r\n MATCH=\"NanoLimbo-\"\r\n\r\n ## get release info and download links\r\n LATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\n RELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n \r\n if [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\n else\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\n fi\r\nelse\r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}.jar; then\r\n echo -e \"Provided download link is valid. Proceeding to download\"\r\n else\r\n echo -e \"Provided download link is invalid. Exiting now\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho \"Downloading server file...\"\r\necho -e \"performing curl -sSL ${DOWNLOAD_URL}\"\r\ncurl -sSL -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f \"settings.yml\" ]; then\r\necho \"Creating settings file...\"\r\n cat <<EOT > settings.yml\r\nbind:\r\n ip: 0.0.0.0\r\n port: 25000\r\nbossBar:\r\n color: PINK\r\n division: SOLID\r\n enable: true\r\n health: 1\r\n text: '{\"text\": \"Welcome to the Limbo!\"}'\r\ndebugLevel: 3\r\ndimension: THE_END\r\ngameMode: 3\r\ninfoForwarding:\r\n secret: <YOUR_SECRET_HERE>\r\n tokens:\r\n - <BUNGEE_GUARD_TOKEN>\r\n type: NONE\r\njoinMessage:\r\n enable: true\r\n text: '{\"text\": \"&eWelcome to the Limbo!\"}'\r\nmaxPlayers: 100\r\nnetty:\r\n threads:\r\n bossGroup: 1\r\n workerGroup: 4\r\n useEpoll: true\r\nping:\r\n description: '{\"text\": \"&9NanoLimbo\"}'\r\n version: NanoLimbo\r\nreadTimeout: 30000\r\nspawnPosition:\r\n pitch: 0\r\n \"true\": 64\r\n x: 0\r\n yaw: 0\r\n z: 0\r\ntitle:\r\n enable: true\r\n fadeIn: 10\r\n fadeOut: 10\r\n stay: 100\r\n subtitle: '{\"text\": \"&6NanoLimbo\"}'\r\n title: '{\"text\": \"&9&lWelcome!\"}'\r\nEOT\r\nfi",
|
"script": "#!\/bin\/bash\r\n# NanoLimbo Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update\r\napt install -y curl jq git openssl bash bc apt-transport-https gnupg software-properties-common\r\n\r\nif [ -z \"${DOWNLOAD_URL}\" ]; then\r\n GITHUB_PACKAGE=\"Nan1t\/NanoLimbo\"\r\n MATCH=\"NanoLimbo-\"\r\n\r\n ## get release info and download links\r\n LATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\n RELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n \r\n if [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\n else\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\n fi\r\nelse\r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}.jar; then\r\n echo -e \"Provided download link is valid. Proceeding to download\"\r\n else\r\n echo -e \"Provided download link is invalid. Exiting now\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho \"Downloading server file...\"\r\necho -e \"performing curl -sSL ${DOWNLOAD_URL}\"\r\ncurl -sSL -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f \"settings.yml\" ]; then\r\necho \"Creating settings file...\"\r\ncurl -sSL -o settings.yml https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/minecraft\/java\/nanolimbo\/settings.yml\r\nfi",
|
||||||
"container": "debian:buster-slim",
|
"container": "debian:buster-slim",
|
||||||
"entrypoint": "bash"
|
"entrypoint": "bash"
|
||||||
}
|
}
|
||||||
|
115
game_eggs/minecraft/java/nanolimbo/settings.yml
Normal file
115
game_eggs/minecraft/java/nanolimbo/settings.yml
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
#
|
||||||
|
# NanoLimbo configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
# Server's host address and port. Set ip empty to use public address
|
||||||
|
bind:
|
||||||
|
ip: 'localhost'
|
||||||
|
port: 65535
|
||||||
|
|
||||||
|
# Max amount of players can join to server
|
||||||
|
# Set -1 to make it infinite
|
||||||
|
maxPlayers: 100
|
||||||
|
|
||||||
|
# Server's data in servers list
|
||||||
|
ping:
|
||||||
|
description: '{"text": "&9NanoLimbo"}'
|
||||||
|
version: 'NanoLimbo'
|
||||||
|
|
||||||
|
# Available dimensions: OVERWORLD, NETHER, THE_END
|
||||||
|
dimension: THE_END
|
||||||
|
|
||||||
|
# Whether to display the player in the player list
|
||||||
|
# For 1.16.5 clients player list will be sent even if disabled, to avoid crash
|
||||||
|
playerList:
|
||||||
|
enable: false
|
||||||
|
username: 'NanoLimbo'
|
||||||
|
|
||||||
|
# Whether to display header and footer in player list
|
||||||
|
headerAndFooter:
|
||||||
|
enable: false
|
||||||
|
header: '{"text": "&eWelcome!"}'
|
||||||
|
footer: '{"text": "&9NanoLimbo"}'
|
||||||
|
|
||||||
|
# Spawn position in the world
|
||||||
|
spawnPosition:
|
||||||
|
x: 0.0
|
||||||
|
y: 64.0
|
||||||
|
z: 0.0
|
||||||
|
yaw: 0.0
|
||||||
|
pitch: 0.0
|
||||||
|
|
||||||
|
# Setup player's game mode
|
||||||
|
# 0 - Survival
|
||||||
|
# 1 - Creative (hide HP and food bar)
|
||||||
|
# 2 - Adventure
|
||||||
|
# 3 - Spectator (hide all UI bars)
|
||||||
|
gameMode: 3
|
||||||
|
|
||||||
|
# Server name which is shown under F3
|
||||||
|
brandName:
|
||||||
|
enable: true
|
||||||
|
content: 'NanoLimbo'
|
||||||
|
|
||||||
|
# Message sends when player join to server
|
||||||
|
joinMessage:
|
||||||
|
enable: true
|
||||||
|
text: '{"text": "&eWelcome to the Limbo!"}'
|
||||||
|
|
||||||
|
# BossBar displays when player join to server
|
||||||
|
# Works on 1.9+ clients only
|
||||||
|
bossBar:
|
||||||
|
enable: true
|
||||||
|
text: '{"text": "Welcome to the Limbo!"}'
|
||||||
|
health: 1.0
|
||||||
|
# Available colors: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE
|
||||||
|
color: PINK
|
||||||
|
# Available divisions: SOLID, DASHES_6, DASHES_10, DASHES_12, DASHES_20
|
||||||
|
division: SOLID
|
||||||
|
|
||||||
|
# Display title and subtitle
|
||||||
|
title:
|
||||||
|
enable: true
|
||||||
|
# Set title text value empty, if you need only subtitle
|
||||||
|
title: '{"text": "&9&lWelcome!"}'
|
||||||
|
# Set subtitle text value empty, if you need only title
|
||||||
|
subtitle: '{"text": "&6NanoLimbo"}'
|
||||||
|
# Fade in time in ticks (1 sec = 20 ticks)
|
||||||
|
fadeIn: 10
|
||||||
|
# Stay time in ticks
|
||||||
|
stay: 100
|
||||||
|
# Fade out time in ticks
|
||||||
|
fadeOut: 10
|
||||||
|
|
||||||
|
# Player info forwarding support.
|
||||||
|
# Available types:
|
||||||
|
# - NONE
|
||||||
|
# - LEGACY
|
||||||
|
# - MODERN
|
||||||
|
# - BUNGEE_GUARD
|
||||||
|
# Don't use secret if you not use MODERN type
|
||||||
|
infoForwarding:
|
||||||
|
type: NONE
|
||||||
|
secret: '<YOUR_SECRET_HERE>'
|
||||||
|
tokens:
|
||||||
|
- '<BUNGEE_GUARD_TOKEN>'
|
||||||
|
|
||||||
|
# Read timeout for connections in milliseconds
|
||||||
|
readTimeout: 30000
|
||||||
|
|
||||||
|
# Define log level. For production, I'd recommend to use level 2
|
||||||
|
# Log levels:
|
||||||
|
# 0 - Display only errors
|
||||||
|
# 1 - Display errors, warnings
|
||||||
|
# 2 - Display errors, warnings, info
|
||||||
|
# 3 - Display errors, warnings, info, debug
|
||||||
|
debugLevel: 2
|
||||||
|
|
||||||
|
# Warning! Do not touch params of this block, if you not completely sure what is this!
|
||||||
|
netty:
|
||||||
|
# Use Linux native transport type, if it possible
|
||||||
|
useEpoll: true
|
||||||
|
# EventLoopGroup threads count
|
||||||
|
threads:
|
||||||
|
bossGroup: 1
|
||||||
|
workerGroup: 4
|
Loading…
Reference in New Issue
Block a user