Class AchievementManager


  • public class AchievementManager
    extends java.lang.Object
    This manager is used for storing all achievements created by this manager
    • Constructor Detail

      • AchievementManager

        public AchievementManager​(@NotNull
                                  @NotNull org.bukkit.plugin.Plugin plugin)
        Default constructor
        Parameters:
        plugin - The plugin instance
    • Method Detail

      • get

        @Nullable
        public @Nullable Achievement get​(@NotNull
                                         @NotNull java.lang.String key)
        Get the achievement using his creation key
        Parameters:
        key - The key used when creating this achievement
        Returns:
        The achievement found or null
      • build

        @NotNull
        public Achievement.AchievementBuilder build​(@NotNull
                                                    @NotNull java.lang.String key,
                                                    @NotNull
                                                    @NotNull java.lang.String title)
        Create a new instance of Achievement.AchievementBuilder This builder allow you to interact with Display field of achievement
        Parameters:
        key - The key used for this achievement
        title - The title of this achievement
        Returns:
        The instance created