Trait valence::brand::SetBrand

source ·
pub trait SetBrand {
    // Required method
    fn set_brand(&mut self, brand: &str);
}

Required Methods§

source

fn set_brand(&mut self, brand: &str)

Sets the brand of the server.

The Brand is displayed to the client in the F3 screen and is often used to display the server name. Any valid &str can be used.

However, the legacy formatting codes are used, which means that while color and other formatting can technically be used, it needs to use the § character, which needs to be encoded as 0xC2, 0xA7.

Implementors§

source§

impl<T> SetBrand for T
where T: WritePacket,