pub trait SetBrand {
// Required method
fn set_brand(&mut self, brand: &str);
}
Required Methods§
sourcefn set_brand(&mut self, brand: &str)
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.