Interface PlayerAchievement


public interface PlayerAchievement
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    returns the description that contains info about earning it of this achievement that'll get displayed e.g.
    getDescription(@Nullable CommandSender sender)
    Returns the description that contains info about earning it of this achievement that'll get displayed e.g.
    Returns the id of this achievement
    default String
    Returns the name of this achievement that'll get displayed e.g.
    getName(@Nullable CommandSender sender)
    Returns the name of this achievement that'll get displayed e.g.
    Returns the plugin that created this achievement
  • Method Details

    • getId

      String getId()
      Returns the id of this achievement
      Returns:
      The internal id of this achievement
    • getPlugin

      Plugin getPlugin()
      Returns the plugin that created this achievement
      Returns:
      The plugin that registered this achievement
    • getName

      String getName(@Nullable @Nullable CommandSender sender)
      Returns the name of this achievement that'll get displayed e.g. when a player earns it
      Tip: Use Message.buildByKey(String, String) when you're saving the message in the messages file
      Parameters:
      sender - Shall return the name in the language of him. Can be null
      Returns:
      The name of this achievement in the language of the sender
    • getName

      default String getName()
      Returns the name of this achievement that'll get displayed e.g. when a player earns it
      Returns:
      The name of this achievement in the default language
    • getDescription

      String getDescription(@Nullable @Nullable CommandSender sender)
      Returns the description that contains info about earning it of this achievement that'll get displayed e.g. when a player earns it
      Tip: Use Message.buildByKey(String, String) when you're saving the message in the messages file
      Parameters:
      sender - Shall return the description in the language of him. Can be null
      Returns:
      The description of this achievement in the language of the sender
    • getDescription

      default String getDescription()
      returns the description that contains info about earning it of this achievement that'll get displayed e.g. when a player earns it
      Returns:
      The descruotuib of this achievement in the default language