Class PlayerDataLoadEvent
java.lang.Object
com.github.happyuky7.swi.api.event.PlayerEvent
com.github.happyuky7.swi.api.event.PlayerDataLoadEvent
- All Implemented Interfaces:
SwiEvent
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 Summary
ConstructorsConstructorDescriptionPlayerDataLoadEvent(@NotNull Object player, @NotNull UUID uuid, @NotNull String name, @NotNull GroupContext context, @NotNull DataNode data) -
Method Summary
Methods inherited from class PlayerEvent
platformPlayer, player, playerName, playerUuid
-
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
-
data
- Returns:
- the record about to be applied (mutable); empty when the player has no data in this context yet
-