1
0
Fork 0
mirror of https://github.com/azalea-rs/azalea-viaversion.git synced 2025-08-02 14:26:04 +00:00
Multiversion for Azalea
Find a file
2024-12-13 07:23:16 -05:00
examples azalea-viaversion 2023-12-03 16:38:01 -06:00
src update azalea and viaproxy 2024-11-28 21:24:12 +00:00
.gitignore Update .gitignore 2024-12-13 07:22:39 -05:00
Cargo.lock update azalea and viaproxy 2024-11-28 21:24:12 +00:00
Cargo.toml update azalea and viaproxy 2024-11-28 21:24:12 +00:00
README.md update to viaproxy 3.0.23 2023-12-16 13:18:07 -06:00
rust-toolchain.toml Update Rust Toolchain 2024-12-13 07:23:16 -05:00

azalea-viaversion

Add multiversion support to your Azalea bots, powered by ViaProxy.

Usage

To use this plugin, simply add the dependency with cargo add azalea-viaversion --git=https://github.com/azalea-rs/azalea-viaversion and then add .add_plugins(azalea_viaversion::ViaVersionPlugin::start("version name here").await) to your ClientBuilder or SwarmBuilder.

Note that this plugin depends on the Git (unstable) version of Azalea, so make sure you're using that.

SwarmBuilder::new()
    .set_handler(handle)
    .add_plugins(azalea_viaversion::ViaVersionPlugin::start("1.19.4").await)
    .add_account(account.clone())
    .start("localhost")
    .await;

How it works

The plugin will automatically download ViaProxy to ~/.minecraft/azalea-viaversion. It then starts up ViaProxy in the background and changes the connection address for the bots to the proxy. It also implements OpenAuthMod so it can keep using Azalea's normal auth mechanisms.