Closed AlexProgrammerDE closed 2 months ago
This also removes the option not to specify a reason component or specifying a String as a reason. The reason for this change is to enforce providing a clear reason to the client. Developers who want to provide a String reason need to wrap it using Component.text(). Developers who want to provide no disconnect reason can just provide an empty reason like Component.text("Connection closed."). This should really not be done and a proper reason component should be provided when working on a client or server.
Just a few messages becoming dynamic using translatable components like vanilla instead of being hardcoded.