Class PlayerEvent
java.lang.Object
com.github.happyuky7.swi.api.event.PlayerEvent
- All Implemented Interfaces:
SwiEvent
- Direct Known Subclasses:
GroupSwitchPostEvent, GroupSwitchPreEvent, PlayerDataLoadEvent, PlayerDataSaveEvent
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPlayerEvent(@NotNull Object player, @NotNull UUID playerUuid, @NotNull String playerName) -
Method Summary
-
Constructor Details
-
PlayerEvent
-
-
Method Details
-
playerUuid
-
playerName
-
platformPlayer
- Returns:
- the platform player object (
org.bukkit.entity.PlayerorServerPlayer)
-
player
Typed access to the platform player, e.g.event.player(Player.class).- Throws:
ClassCastException- when the type does not match the running platform
-