set Text
Sets the text on the sign
The input is split on newlines, and the sign is filled from top to bottom
If the input text contains more than four lines, an IllegalArgumentException is thrown.
The input text is converted to a rich text format using the makeRich function. See the documentation for that function for more information.
Example:
sign.setText("\nHello\n@red{@bold{World}}!")
Content copied to clipboard