Added support for spiget to download Spigot/Bukkit/Paper plugins

#808
This commit is contained in:
Geoff Bourne
2021-03-21 11:43:21 -05:00
parent d695fc3fbc
commit 5225ba06c8
5 changed files with 85 additions and 5 deletions

View File

@@ -57,13 +57,20 @@ function isTrue() {
}
function isDebugging() {
if [[ -v DEBUG ]] && [[ ${DEBUG^^} == TRUE ]]; then
if isTrue "${DEBUG:-false}"; then
return 0
else
return 1
fi
}
function handleDebugMode() {
if isDebugging; then
set -x
extraCurlArgs=(-v)
fi
}
function debug() {
if isDebugging; then
log "DEBUG: $*"