#!/usr/bin/env bash core_name_velocity() { echo "Velocity" } core_default_port_velocity() { echo "25577" } core_protocol_velocity() { echo "tcp" } core_runtime_velocity() { echo "java" } core_validate_velocity() { return 0 } core_install_velocity() { info "$(t core_install "$(core_name_velocity)")" emit_step "core_install" "$(core_name_velocity)" local url emit_step "core_resolve_download" "velocity" url="$(get_papermc_download_url "velocity" "${MC_VERSION:-latest}")" download_as_user "$url" "$SERVER_DIR/velocity.jar" run_cmd bash -c "cat > '$SERVER_DIR/start.sh' <