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
2025-07-24 14:45:34 -04:00
examples Support Socks5 proxies (#14) 2025-05-07 16:50:14 -05:00
src Update ViaProxy for 1.21.8 2025-07-24 14:45:34 -04:00
.gitignore Update .gitignore 2024-12-13 07:22:39 -05:00
Cargo.lock Update ViaProxy for 1.21.8 2025-07-24 14:45:34 -04:00
Cargo.toml Update ViaProxy for 1.21.6 2025-06-20 20:27:05 -04:00
README.md fix and simplify the example in the readme 2025-04-25 01:02:53 -01:00
rust-toolchain.toml Update Rust Toolchain 2024-12-13 07:23:16 -05:00
rustfmt.toml Support Socks5 proxies (#14) 2025-05-07 16:50:14 -05:00

Azalea ViaVersion

An Azalea plugin using ViaProxy to support connecting to every Minecraft server version.

Usage

Add the ViaVersionPlugin to your ClientBuilder or SwarmBuilder.

use azalea::prelude::*;
use azalea_viaversion::ViaVersionPlugin;

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

Compatibility

This plugin depends on the main branch of Azalea.

Important

If you want use a different branch or fork you must patch your project's Cargo.toml file!

[dependencies]
azalea = { git = "https://github.com/azalea-rs/azalea" }
azalea-viaversion = { git = "https://github.com/azalea-rs/azalea-viaversion" }

# Note: You can also use this to pin Azalea to a specific commit.
# [patch.'https://github.com/azalea-rs/azalea']
# azalea = { git = "https://github.com/azalea-rs/azalea", branch = "1.21.4" }

Matrix/Discord

If you'd like to chat about Azalea, you can join the Matrix space at #azalea:matdoes.dev (recommended) or the Discord server at discord.gg/FaRey6ytmC (they're bridged so you don't need to join both).

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.