Interface PlaceholderService
- All Known Implementing Classes:
BasePlaceholderService
public interface PlaceholderService
An interface providing methods to parse placeholders on strings.
-
Method Summary
Modifier and TypeMethodDescription@NonNull StringParses a string for placeholders, using values fromplayer.Parses each string inlistforplayer.parse(MessageConfiguration.MessageCompound compound, @NonNull IPlayer player) Parses each value incompoundforplayer.
-
Method Details
-
parse
Parses a string for placeholders, using values fromplayer.- Parameters:
string- the stringplayer- the player- Returns:
- a new string
-
parse
Parses each string inlistforplayer.- Parameters:
list- the listplayer- the player- Returns:
- a new list
-
parse
default MessageConfiguration.MessageCompound parse(MessageConfiguration.MessageCompound compound, @NonNull IPlayer player) Parses each value incompoundforplayer.- Parameters:
compound- the compoundplayer- the player- Returns:
- a new compound
-