Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.phoenixcrates.api crate events
com.phoenixplugins.phoenixcrates.api.crate.events

Class CrateRewardPlayerEvent

  • java.lang.Object
    • org.bukkit.event.Event
      • com.phoenixplugins.phoenixcrates.api.crate.events.CrateRewardPlayerEvent


  • public class CrateRewardPlayerEvent
    extends org.bukkit.event.Event
    Represents an event triggered when a player receives a reward from opening a crate. This event contains information about the crate, the reward, and the player receiving the reward.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Field Summary

      Modifier and Type Field and Description
      protected CrateInstance crate
      The crate instance from which the reward was obtained.
      protected org.bukkit.entity.Player player
      The player who received the reward.
      protected BaseReward reward
      The reward given to thNe player.
    • Constructor Summary

      Constructor and Description
      CrateRewardPlayerEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
      Constructor for the CrateRewardPlayerEvent.
    • Method Summary

      Modifier and Type Method and Description
      static org.bukkit.event.HandlerList getHandlerList()
      Retrieves the handler list for this event.
      org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event.
      • Methods inherited from class org.bukkit.event.Event

        getEventName, isAsynchronous
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • crate

        protected final CrateInstance crate
        The crate instance from which the reward was obtained.

        Represents the specific crate that generated this reward.

      • reward

        protected BaseReward reward
        The reward given to thNe player.

        Represents the reward instance that the player received from the crate.

      • player

        protected final org.bukkit.entity.Player player
        The player who received the reward.

        Represents the recipient of the crate reward.

    • Constructor Detail

      • CrateRewardPlayerEvent

        public CrateRewardPlayerEvent(CrateInstance crate,
                                      BaseReward reward,
                                      org.bukkit.entity.Player player)
        Constructor for the CrateRewardPlayerEvent. Initializes the event with the crate, reward, and player involved.
        Parameters:
        crate - the crate instance the player opened
        reward - the reward the player received
        player - the player who received the reward
    • Method Detail

      • getHandlers

        public org.bukkit.event.HandlerList getHandlers()
        Gets the list of handlers for this event. This is used by the Bukkit event system to manage event listeners.
        Specified by:
        getHandlers in class org.bukkit.event.Event
        Returns:
        the list of event handlers
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()
        Retrieves the handler list for this event. This is a static method to allow external access to the handler list.
        Returns:
        the HandlerList for this event
Last updated about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more