Skip to content

azalea-rs/azalea-viaversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azalea ViaVersion Plugin

Add 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

Note: If you use your own fork of Azalea you must use cargo patch to replace it recursively.

[patch.'https://github.com/azalea-rs/azalea']
azalea = { git = "https://github.com/Your-Name-Here/azalea" }

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.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages