Class UserEvent
java.lang.Object
com.jakub.jpremium.proxy.api.event.velocity.UserEvent
- Direct Known Subclasses:
UserEvent.ActivateSecondFactor,UserEvent.ChangeEmailAddress,UserEvent.ChangePassword,UserEvent.Cracked,UserEvent.CreatePassword,UserEvent.DeactivateSecondFactor,UserEvent.DestroySession,UserEvent.FailedLogin,UserEvent.Login,UserEvent.Premium,UserEvent.RecoveryPassword,UserEvent.Register,UserEvent.RequestSecondFactor,UserEvent.StartSession,UserEvent.Unregister
The class is a parent class of all JPremium events. The event is always called after
successfully operation execution. The event is run in a new thread which is only for the event.
All events you can listen are below as sub-classes.
All event names represent what they do, so they do not have any additional javadocs.
! It is not the final version of the API. It may be changed in next versions !
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.velocitypowered.api.command.CommandSource>Returns the command sender who executed the command, or an empty optional if the command was called from the JPremium API.Returns the user for whom the event was called.
-
Constructor Details
-
Method Details
-
getUserProfile
Returns the user for whom the event was called.- Returns:
- the user object.
-
getCommandSource
Returns the command sender who executed the command, or an empty optional if the command was called from the JPremium API.- Returns:
- the command sender object.
-