Class Templates
java.lang.Object
com.plotsquared.core.configuration.caption.Templates
Utility class that generates
templates
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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 aTemplate
from a PlotSquaredCaption
static @NonNull net.kyori.adventure.text.minimessage.Template
Create aTemplate
from a plot areastatic @NonNull net.kyori.adventure.text.minimessage.Template
Create aTemplate
from a numberstatic @NonNull net.kyori.adventure.text.minimessage.Template
Create aTemplate
from a stringstatic @NonNull net.kyori.adventure.text.minimessage.Template
Create aTemplate
from a username (using UUID mappings)
-
Method Details
-
of
public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull UUID uuid) Create aTemplate
from a username (using UUID mappings)- Parameters:
key
- Template keyuuid
- Player UUID- Returns:
- Generated template
-
of
public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull String value) Create aTemplate
from a string- Parameters:
key
- Template keyvalue
- Template value- Returns:
- Generated template
-
of
public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull PlotArea area) Create aTemplate
from a plot area- Parameters:
key
- Template Keyarea
- Plot area- Returns:
- Generated template
-
of
public static @NonNull net.kyori.adventure.text.minimessage.Template of(@NonNull String key, @NonNull Number number) Create aTemplate
from a number- Parameters:
key
- Template keynumber
- Number- Returns:
- Generated template