pub fn on_message(
    core: &Core,
    player: &mut WriteGuard<usize, Box<dyn Player + Send + Sync>>,
    message: String,
) -> bool {
    let mut surpress = false;

    help_command(core, player.as_mut(), &message, &mut surpress);
    main_command(core, player.as_mut(), &message, &mut surpress);
    join_command(core, player.as_mut(), &message, &mut surpress);
    tp_command(core, player.as_mut(), &message, &mut surpress);
    worlds_command(core, player.as_mut(), &message, &mut surpress);
    players_command(core, player.as_mut(), &message, &mut surpress);

    surpress
}
// Calls the chat hook. Register your own event systems down below.
Calls the chat hook. Register your own event systems down below.
Calls the chat hook . Register your own event systems down below .
pub fn on_message(
    core: &Core,
    player: &mut WriteGuard<usize, Box<dyn Player + Send + Sync>>,
    message: String,
) -> bool {
    let mut surpress = false;
    help_command(core, player.as_mut(), &message, &mut surpress);
    main_command(core, player.as_mut(), &message, &mut surpress);
    join_command(core, player.as_mut(), &message, &mut surpress);
    tp_command(core, player.as_mut(), &message, &mut surpress);
    worlds_command(core, player.as_mut(), &message, &mut surpress);
    players_command(core, player.as_mut(), &message, &mut surpress);
    surpress
}
pub fn on_message ( core : & Core , player : & mut WriteGuard < usize , Box < dyn Player + Send + Sync > > , message : String , ) -> bool { let mut surpress = false ; help_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; main_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; join_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; tp_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; worlds_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; players_command ( core , player . as_mut ( ) , & message , & mut surpress ) ; surpress }
Calls the chat hook.
Calls the chat hook .
core
&Core
player
&mut WriteGuard<usize, Box<dyn Player + Send + Sync>>
message
String
core
&Core
player
&mut WriteGuard<usize, Box<dyn Player + Send + Sync>>
message
String