Class Escape

java.lang.Object
de.eldoria.schematicbrush.util.Escape

public final class Escape extends Object
Escapes text entered by players before it is placed into a MiniMessage string.
  • Method Details

    • text

      public static String text(String text)
      Escapes tags, so the text is shown as written.
      Parameters:
      text - text entered by a player
      Returns:
      text that renders literally in MiniMessage
    • argument

      public static String argument(String argument)
      Escapes quotes and backslashes, so the text stays inside a single-quoted tag argument such as a click command or hover text.
      Parameters:
      argument - argument content
      Returns:
      content that can be placed between single quotes of a tag argument