spvelocity 图标

spvelocity

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/spvelocity
资源信息

Minecraft 版本: 1.21 1.21.2 1.21.4 1.21.5

平台: paper spigot

资源介绍

Spvelocity — a Paper / Spigot plugin that downloads and launches a Velocity proxy

Java Paper License


What is it?

Spvelocity is a Paper / Spigot plugin that automatically:

  1. Downloads a Velocity jar from a given URL
  2. Starts Velocity in a separate process
  3. Lets you control it in-game / from console with /proxy start|stop|status

Perfect for quick network testing, CI pipelines, or ad-hoc test servers.


Features

  • Auto-download of velocity.jar on the very first /proxy start
  • Works on Paper / Spigot 1.12 – latest (built against the 1.21.4 API)
  • Requires only Java 11+, recommended Java 17 or 21
  • Runs in a background thread – won’t block the main server
  • Stops Velocity automatically when the Paper server stops
  • Simple configuration via plugins/Spvelocity/config.yml

Requirements

  • A Paper or Spigot server
    (1.12 – latest, built against Paper-1.21.4)
  • Java 11 or newer (Velocity itself needs 11+)
  • Internet access the first time you run /proxy start (to download Velocity)

Getting started (pre-built jar)

  1. Download spvelocity-<version>-shaded.jar from the Releases page
  2. Drop it into <server>/plugins
  3. Start your Paper / Spigot server with Java 17 / 21 etc.
  4. Run in-game or in console:
    /proxy start

    velocity.jar is downloaded to plugins/Spvelocity/proxy/ and booted on port 25577


Building from source

git clone https://github.com/<YOUR-USER>/spvelocity.git
cd spvelocity
mvn clean package    # produces target/spvelocity-*-shaded.jar

Configuration — config.yml

velocity:
  download-url: "https://api.papermc.io/v2/projects/velocity/versions/3.3.0-SNAPSHOT/builds/261/downloads/velocity-3.3.0-SNAPSHOT-261.jar"
  jar-name: "velocity.jar"
  port: 25577
  • Copy the download URL from PaperMC’s downloads page:
    https://papermc.io/downloads#Velocity
  • Stable versions (3.2.0, etc.) keep the same URL.
  • For SNAPSHOTs you may want a script that queries the API for the latest build or update the URL manually.

Commands & permissions

Command Description Permission Default
/proxy start Download & start Velocity spvelocity.command OP
/proxy stop Stop the running Velocity instance spvelocity.command OP
/proxy status Show proxy status spvelocity.command OP

How it works

  1. SpvelocityManager checks whether plugins/Spvelocity/proxy/velocity.jar exists
  2. If not, it downloads it via Apache Commons IO from the configured URL
  3. Runs java -jar velocity.jar --port <port> through ProcessBuilder
  4. Redirects proxy output to the Paper console
  5. When the Paper server shuts down, the child process is destroyed via destroy()

License

MIT License — see LICENSE for details.
Fork, modify, redistribute, enjoy!

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Mjolnir Mace

价格:0 墨喵币
下载量:0

查看详情
Beta Nether

价格:0 墨喵币
下载量:0

查看详情
Craft Attack 13 Pack

价格:0 墨喵币
下载量:0

查看详情
Christmas Barrels and Shulkers

价格:0 墨喵币
下载量:0

查看详情