Interface KitGiveEvent

All Superinterfaces:
Event
All Known Subinterfaces:
KitGiveEvent.Post, KitGiveEvent.Pre

public interface KitGiveEvent extends Event
The event of giving a kit.
The event is not called when giving a kit with administrative permission.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Event is not called if no kit has been given.
    static interface 
    The event will be canceled by default if the player cannot currently get a kit.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The time when the kit will be available to the player again.
    The player to whom the kit is given.
    kit()
    A kit that is given to the player.

    Methods inherited from interface org.spongepowered.api.event.Event

    cause, context, source
  • Method Details

    • getPlayer

      ServerPlayer getPlayer()
      The player to whom the kit is given.
    • kit

      Kit kit()
      A kit that is given to the player.
    • getNextAllowedAccess

      long getNextAllowedAccess()
      The time when the kit will be available to the player again.