Notify system

This commit is contained in:
2025-08-16 16:30:16 +02:00
parent bc298fe0fa
commit 8308b9e011
7 changed files with 198 additions and 59 deletions
+14
View File
@@ -0,0 +1,14 @@
use crate::response::{Response, Result};
use super::Session;
pub fn emote(session: &Session, emote: String, notify: Vec<&str>) -> Result {
if notify.len() > 0 {
session.notify(
&notify,
&format!("emote@uuid={}@name={emote}", session.local_player.id),
)?;
}
Ok(Response::Success)
}