java.lang.Object
com.plotsquared.core.configuration.caption.Templates

public final class Templates extends Object
Utility class that generates templates
  • Method Details

    • of

      public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull LocaleHolder localeHolder, @NonNull String key, @NonNull Caption caption, @NonNull net.kyori.adventure.text.minimessage.Template... replacements)
      Create a Template from a PlotSquared Caption
      Parameters:
      localeHolder - Locale holder
      key - Template key
      caption - Caption object
      replacements - Replacements
      Returns:
      Generated template
    • of

      public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull UUID uuid)
      Create a Template from a username (using UUID mappings)
      Parameters:
      key - Template key
      uuid - Player UUID
      Returns:
      Generated template
    • of

      public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull String value)
      Create a Template from a string
      Parameters:
      key - Template key
      value - Template value
      Returns:
      Generated template
    • of

      public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull PlotArea area)
      Create a Template from a plot area
      Parameters:
      key - Template Key
      area - Plot area
      Returns:
      Generated template
    • of

      public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull Number number)
      Create a Template from a number
      Parameters:
      key - Template key
      number - Number
      Returns:
      Generated template