1
0
Fork 0
mirror of https://github.com/azalea-rs/azalea-viaversion.git synced 2025-08-02 23:44:39 +00:00
Multiversion for Azalea
Find a file
2024-12-13 07:26:35 -05:00
examples Rewrite and switch to Bevy IoTaskPool 2024-12-13 07:26:35 -05:00
src Rewrite and switch to Bevy IoTaskPool 2024-12-13 07:26:35 -05: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 README.md 2024-12-13 07:24:37 -05:00
rust-toolchain.toml Update Rust Toolchain 2024-12-13 07:23:16 -05:00

Azalea ViaVersion Plugin

Enhance multi-version compatibility for your Azalea bots using ViaProxy.

Usage

To use this plugin, simply add the dependencies:

  • cargo add --git https://github.com/azalea-rs/azalea azalea
  • cargo add --git https://github.com/azalea-rs/azalea-viaversion azalea-viaversion

Then integrate it into your ClientBuilder or SwarmBuilder:

  • .add_plugins(ViaVersionPlugin::start("1.21.4").await)
#[tokio::main]
async fn main() {
    SwarmBuilder::new()
        .add_account(Account::offline("Azalea"))
        .add_plugins(ViaVersionPlugin::start("1.21.4").await)
        .start("localhost")
        .await
        .unwrap();
}

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.