Interface IndividualPlaceholder
- All Superinterfaces:
Placeholder
An individual placeholder that can display a different text to each player. See
Placeholder for general
information about placeholders.- Since:
- 1
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetReplacement(@NotNull org.bukkit.entity.Player player, @Nullable String argument) Callback for providing a placeholder replacement for a given player and an optional argument.Methods inherited from interface me.filoghost.holographicdisplays.api.placeholder.Placeholder
getRefreshIntervalTicks
-
Method Details
-
getReplacement
@Nullable @Nullable String getReplacement(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String argument) Callback for providing a placeholder replacement for a given player and an optional argument. A different replacement can be shown to each player.The argument is provided through the placeholder text: for example, the argument of {test} is null, the argument of {test: hello world} is the string "hello world".
Warning: the implementation should be performance efficient, as it may be invoked often depending on the refresh interval of the placeholder and the number of players viewing the hologram.
- Parameters:
player- the player that will see the provided replacementargument- the optional placeholder argument, null if not specified- Returns:
- the optional placeholder replacement, null to leave the placeholder unreplaced
- Since:
- 1
-