diff --git a/README.md b/README.md index 146a62b..272f2e4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,18 @@ An [Azalea](https://github.com/azalea-rs/azalea) plugin with useful features that will probably trigger anticheats. +## Usage + +```rust +async fn handle(mut bot: Client, event: azalea::Event, state: State) -> anyhow::Result<()> { + match event { + azalea::Event::Init => { + bot.set_anti_knockback(true); + } + } +} +``` + ## Features - Anti-knockback diff --git a/src/lib.rs b/src/lib.rs index eab118a..343b694 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![doc = include_str!("../README.md")] + use azalea::{ app::{App, Plugin, PreUpdate}, ecs::prelude::*,