Interface UserTrackEvent
-
- All Superinterfaces:
LuckPermsEvent,Sourced
- All Known Subinterfaces:
UserDemoteEvent,UserPromoteEvent
public interface UserTrackEvent extends LuckPermsEvent, Sourced
Called when a user interacts with a track through a promotion or demotion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull TrackActiongetAction()Gets the action performed@NonNull Optional<String>getGroupFrom()Gets the group the user was promoted/demoted from.@NonNull Optional<String>getGroupTo()Gets the group the user was promoted/demoted to@NonNull TrackgetTrack()Gets the track involved in the event@NonNull UsergetUser()Gets the user who was promoted or demoted-
Methods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPerms
-
-
-
-
Method Detail
-
getTrack
@NonNull Track getTrack()
Gets the track involved in the event- Returns:
- the track involved in the event
-
getUser
@NonNull User 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
@NonNull Optional<String> 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
-
-