Class MessageUtils

Object
MessageUtils

public class MessageUtils extends Object
Allows formatted, multi-line, word-wrapped sector messages
Since:
1.0
Author:
LazyWizard
  • Field Details

  • Method Details

    • showMessage

      public static void showMessage(@Nullable String preamble, String message, boolean indentMessage)
      Formats and word-wraps the supplied text, then outputs it as a sector message.
      Parameters:
      preamble - The header for this message, won't be indented. Can be null.
      message - The main body of text.
      indentMessage - Whether to indent each line of the main body.
      Since:
      1.0
    • showMessage

      public static void showMessage(String message)
      Formats and word-wraps the supplied text, then outputs it as a sector message.
      Parameters:
      message - The message to output.
      Since:
      1.0