Class PlayerEarnAchievementEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.player.PlayerEarnAchievementEvent
All Implemented Interfaces:
Cancellable

public class PlayerEarnAchievementEvent extends Event implements Cancellable
Gets called when a player earns an achievement provided by MBedwars

It's possible that this event might get called async.

  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
      Returns the player who has won the achievement.
      Returns:
      The player involved in this event
    • getAchievement

      public PlayerAchievement getAchievement()
      Returns the achievement that the player earned.
      Returns:
      The achievement
    • getPlayerAchievementsData

      public PlayerAchievements getPlayerAchievementsData()
      Returns an object which contains his earn history.
      Returns:
      The achievements data of the player
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean bool)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()