Class PlayerDataLoadEvent

java.lang.Object
com.github.happyuky7.swi.api.event.PlayerEvent
com.github.happyuky7.swi.api.event.PlayerDataLoadEvent
All Implemented Interfaces:
SwiEvent

public final class PlayerDataLoadEvent extends PlayerEvent
Fired after a record was read from storage and before it is applied to the player. Listeners may change data() to alter what gets applied.
  • Constructor Details

    • PlayerDataLoadEvent

      public PlayerDataLoadEvent(@NotNull @NotNull Object player, @NotNull @NotNull UUID uuid, @NotNull @NotNull String name, @NotNull @NotNull GroupContext context, @NotNull @NotNull DataNode data)
  • Method Details

    • context

      @NotNull public @NotNull GroupContext context()
    • data

      @NotNull public @NotNull DataNode data()
      Returns:
      the record about to be applied (mutable); empty when the player has no data in this context yet