Interface PlaceholderService

All Known Implementing Classes:
BasePlaceholderService

public interface PlaceholderService
An interface providing methods to parse placeholders on strings.
  • Method Details

    • parse

      @NonNull String parse(@NonNull String string, @NonNull IPlayer player)
      Parses a string for placeholders, using values from player.
      Parameters:
      string - the string
      player - the player
      Returns:
      a new string
    • parse

      default @NonNull List<String> parse(@NonNull List<String> list, @NonNull IPlayer player)
      Parses each string in list for player.
      Parameters:
      list - the list
      player - the player
      Returns:
      a new list
    • parse

      Parses each value in compound for player.
      Parameters:
      compound - the compound
      player - the player
      Returns:
      a new compound