Class RankPlaceholdersService

java.lang.Object
net.dzikoysk.funnyguilds.rank.placeholders.RankPlaceholdersService
All Implemented Interfaces:
PlaceholdersService<User>

public class RankPlaceholdersService extends Object implements PlaceholdersService<User>
  • Constructor Details

  • Method Details

    • format

      public String format(@Nullable @Nullable Object entity, String text, User targetUser)
      Format top and top position placeholders in text.
      Specified by:
      format in interface PlaceholdersService<User>
      Parameters:
      text - text to format
      targetUser - user for which text will be formatted
      Returns:
      formatted text
    • formatTop

      public String formatTop(String text, @Nullable @Nullable User targetUser)
      Format top placeholders (PTOP/GTOP-type-x) in text.
      Parameters:
      text - text to format
      targetUser - user for which text will be formatted
      Returns:
      formatted text
    • formatTopPosition

      public String formatTopPosition(String text, @Nullable @Nullable User targetUser)
      Format top position placeholders (POSITION/G-POSITION-type) in text.
      Parameters:
      text - text to format
      targetUser - user for which text will be formatted
      Returns:
      formatted text
    • formatRank

      @Deprecated @ScheduledForRemoval(inVersion="4.11.0") public String formatRank(String text, @Nullable @Nullable User targetUser)
      Deprecated.
      Format legacy top placeholders (PTOP/GTOP-x) in text
      Parameters:
      text - text to format
      targetUser - user for which text will be formatted
      Returns:
      formatted text
    • prepareReplacement

      public dev.peri.yetanothermessageslibrary.replace.Replaceable prepareReplacement(User targetUser)