Fix typo in bungeecord arg parser and handle unknown arguments

This commit is contained in:
Leonard Steppy 2025-12-22 20:57:41 +01:00
parent f28d63d7d8
commit 9b209b7d4f

View File

@ -23,7 +23,7 @@ function main {
exit 1 exit 1
fi fi
;; ;;
"benugeecord") "bungeecord")
bungeecord=true bungeecord=true
if $velocity || $standalone; then if $velocity || $standalone; then
echo "argument bungeecord can't be used together with velocity or standalone" echo "argument bungeecord can't be used together with velocity or standalone"
@ -43,6 +43,10 @@ function main {
"--help") "--help")
help=true help=true
;; ;;
*)
echo "Unknown argument: $arg"
exit 1
;;
esac esac
done done