Class GSAuthEvent

java.lang.Object
org.bukkit.event.Event
com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
Direct Known Subclasses:
GSAuthAuthenticatedEvent, GSAuthBanEvent, GSAuthKickEvent, GSAuthLoginReminderEvent, GSAuthMuteEvent, GSAuthWarningEvent

public abstract class GSAuthEvent extends org.bukkit.event.Event
The base event for all fired by this plugin.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    GSAuthEvent(@Nullable org.bukkit.entity.Player player, UUID uuid)
    Base constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.entity.Player
    Returns the player that was acted upon.
    Returns the UUID of the player that was acted upon

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GSAuthEvent

      public GSAuthEvent(@Nullable org.bukkit.entity.Player player, UUID uuid)
      Base constructor
      Parameters:
      player - the player
      uuid - the UUID of the player
  • Method Details

    • getPlayer

      public @Nullable org.bukkit.entity.Player getPlayer()
      Returns the player that was acted upon. May be null if the player is not online
      Returns:
      the player
    • getUuid

      public UUID getUuid()
      Returns the UUID of the player that was acted upon
      Returns:
      the uuid of the player