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. when a player earns itgetDescription
(@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: UseMessage.buildByKey(String, String)
when you're saving the message in the messages filegetId()
Returns the id of this achievementdefault String
getName()
Returns the name of this achievement that'll get displayed e.g. when a player earns itgetName
(@Nullable CommandSender sender) 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 fileReturns the plugin that created this achievementboolean
Get whether it has been enabled by the server administrator.void
setEnabled
(boolean enabled) Set whether it is enabled.
-
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 description of this achievement in the default language
-
isEnabled
boolean isEnabled()Get whether it has been enabled by the server administrator.Player's won't earn it and see it in relevant UIs it's disabled. The given state also resets itself with reloads as it loads the given information from the coressponding config file.
- Returns:
true
if it's enabled
-
setEnabled
void setEnabled(boolean enabled) Set whether it is enabled.Player's won't earn it and see it in relevant UIs it's disabled. The given state also resets itself with reloads as it loads the given information from the coressponding config file.
- Parameters:
enabled
-true
if it's enabled
-