1
0
Fork 0
mirror of https://github.com/azalea-rs/azalea-hax.git synced 2025-08-02 06:16:05 +00:00

add usage example in readme

This commit is contained in:
mat 2023-10-08 03:44:43 -05:00
parent 933676b7a3
commit ce9c39d275
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
use azalea::{
app::{App, Plugin, PreUpdate},
ecs::prelude::*,