Class UnregisterEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
All Implemented Interfaces:
CancellableEvent, net.md_5.bungee.api.plugin.Cancellable

public class UnregisterEvent extends BungeeCancellableEvent
Event triggered when an unregister operation is initiated for a player.

May be unavailable for PROXY implementations.

  • Constructor Details

    • UnregisterEvent

      public UnregisterEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID playerId, String playerName, UnregisterSource source)
  • Method Details

    • getPlayer

      @Nullable public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()
      Returns the player instance.

      It can be null if the player is offline.

    • getPlayerId

      public UUID getPlayerId()
      Returns the player id.
      Since:
      API v7
    • getPlayerName

      public String getPlayerName()
      Returns the player's name.
    • getSource

      public UnregisterSource getSource()
      Returns the unregister source.