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 !
  • Constructor Details

    • UserEvent

      public UserEvent(User userProfile, net.md_5.bungee.api.CommandSender commandSender)
  • Method Details

    • getUserProfile

      public User getUserProfile()
      Returns the user for whom the event was called.
      Returns:
      the user object.
    • getCommandSender

      public Optional<net.md_5.bungee.api.CommandSender> 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.