/azalea-viaversion

Multiversion for Azalea

Primary LanguageRust

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.