Class PlayerAchievementAwardedEvent

  • All Implemented Interfaces:
    Cancellable

    @Deprecated
    public class PlayerAchievementAwardedEvent
    extends PlayerEvent
    implements Cancellable
    Deprecated.
    future versions of Minecraft do not have achievements
    Called when a player earns an achievement.
    • Constructor Detail

      • PlayerAchievementAwardedEvent

        public PlayerAchievementAwardedEvent​(Player player,
                                             Achievement achievement)
        Deprecated.
    • Method Detail

      • getAchievement

        public Achievement getAchievement()
        Deprecated.
        Gets the Achievement being awarded.
        Returns:
        the achievement being awarded
      • isCancelled

        public boolean isCancelled()
        Deprecated.
        Description copied from interface: Cancellable
        Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        true if this event is cancelled
      • setCancelled

        public void setCancelled​(boolean cancel)
        Deprecated.
        Description copied from interface: Cancellable
        Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancel - true if you wish to cancel this event
      • getHandlerList

        public static HandlerList getHandlerList()
        Deprecated.