Notify system
This commit is contained in:
@@ -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(
|
||||
¬ify,
|
||||
&format!("emote@uuid={}@name={emote}", session.local_player.id),
|
||||
)?;
|
||||
}
|
||||
|
||||
Ok(Response::Success)
|
||||
}
|
||||
Reference in New Issue
Block a user