Class PAPIPlaceholderService

java.lang.Object
com.gamersafer.minecraft.auth.paper.placeholder.PAPIPlaceholderService
All Implemented Interfaces:
com.gamersafer.minecraft.auth.common.placeholder.PlaceholderService

public class PAPIPlaceholderService extends Object implements com.gamersafer.minecraft.auth.common.placeholder.PlaceholderService
Parses placeholders in strings.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PAPIPlaceholderService(@NonNull org.bukkit.plugin.java.JavaPlugin plugin)
    Constructs PlaceholderService.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    parse(@NonNull String string, @NonNull com.gamersafer.minecraft.auth.common.abstraction.IPlayer player)
    Parses placeholders in string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.gamersafer.minecraft.auth.common.placeholder.PlaceholderService

    parse, parse
  • Constructor Details

    • PAPIPlaceholderService

      public PAPIPlaceholderService(@NonNull org.bukkit.plugin.java.JavaPlugin plugin)
      Constructs PlaceholderService.
      Parameters:
      plugin - the plugin
  • Method Details

    • parse

      public @NonNull String parse(@NonNull String string, @NonNull com.gamersafer.minecraft.auth.common.abstraction.IPlayer player)
      Parses placeholders in string.
      Specified by:
      parse in interface com.gamersafer.minecraft.auth.common.placeholder.PlaceholderService
      Parameters:
      string - the string
      player - the player
      Returns:
      the string