Interface UserTrackEvent
- All Superinterfaces:
LuckPermsEvent,Sourced
- All Known Subinterfaces:
UserDemoteEvent,UserPromoteEvent
Called when a user interacts with a track through a promotion or demotion
-
Method Summary
Methods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPerms
-
Method Details
-
getTrack
Gets the track involved in the event- Returns:
- the track involved in the event
-
getUser
Gets the user who was promoted or demoted- Returns:
- the user involved in the event
-
getAction
@NonNull TrackAction getAction()Gets the action performed- Returns:
- the action performed
-
getGroupFrom
Gets the group the user was promoted/demoted from.May be
Optional.empty()if the user wasn't already placed on the track.- Returns:
- the group the user was promoted/demoted from
-
getGroupTo
Gets the group the user was promoted/demoted to- Returns:
- the group the user was promoted/demoted to
-