AlonsoPlusAPI - AlonsoAliaga/AlonsoPlus GitHub Wiki

AlonsoPlusAPI

AlonsoPlusAPIcan be used to make some checks and modify player data easily.

com.alonsoaliaga.alonsoplus.api.AlonsoPlusAPI

Available methods

boolean isLoaded(UUID uuid)

  • Returns if player is loaded.

List<String> getAvailableColors()

  • Returns available colors identifiers.

@Nullable String getColor(String colorIdentifier)

  • Returns color from identifer. Returns null if identifier is not valid.

@Nullable String getColor(@Nonnull Player player)

  • Returns color of player. Returns null if player is not ranked.

@Nullable String getColorIdentifier(@Nonnull Player player)

  • Returns color identifier of player. Returns null if player is not ranked.

@Nonnull String getPrefix(@Nonnull Player player)

  • Returns player prefix/rank parsed with colors. This is the same as using %alonsoplus_rank_prefix%

Available events

PlayerRegisterEvent

  • When player data is registered in database.

ColorSelectEvent

  • When player selects a color.
⚠️ **GitHub.com Fallback** ⚠️