Class UserEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.jakub.jpremium.proxy.api.event.bungee.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
public class UserEvent
extends net.md_5.bungee.api.plugin.Event
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 class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.md_5.bungee.api.CommandSender>
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.Methods inherited from class net.md_5.bungee.api.plugin.Event
postCall
-
Constructor Details
-
Method Details
-
getUserProfile
Returns the user for whom the event was called.- Returns:
- the user object.
-
getCommandSender
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.
-