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

#808
This commit is contained in:
Geoff Bourne committed 2021-03-21 11:43:21 -05:00
1 parent d695fc3fbc
commit 5225ba06c8
5 files changed
+85 -5

No files matched your search

+8 -1
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: $*"