Package de.marcely.bedwars.api.player
Interface PlayerAchievement
public interface PlayerAchievement
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.getId()
Returns the id of this achievementdefault String
getName()
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
Returns the name of this achievement that'll get displayed e.g. when a player earns it
Tip: UseMessage.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
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
Returns the description that contains info about earning it of this achievement that'll get displayed e.g. when a player earns it
Tip: UseMessage.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
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
-