Package org.bukkit.event.player
Class PlayerPreLoginEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerPreLoginEvent
Deprecated.
Stores details for players attempting to log in
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Basic kick reasons for communicating to plugins
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerPreLoginEvent(@NotNull String name, @NotNull InetAddress ipAddress) Deprecated.PlayerPreLoginEvent(@NotNull String name, @NotNull InetAddress ipAddress, @NotNull UUID uniqueId) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionvoidallow()Deprecated.Allows the player to log invoiddisallow(@NotNull PlayerPreLoginEvent.Result result, @NotNull String message) Deprecated.voiddisallow(@NotNull PlayerPreLoginEvent.Result result, Component message) Deprecated.Disallows the player from logging in, with the given reasonDeprecated.Gets the player IP address.static @NotNull HandlerListDeprecated.Deprecated.Deprecated.in favour ofkickMessage()getName()Deprecated.Gets the player's name.Deprecated.Gets the current result of the login, as an enumDeprecated.Gets the player's unique ID.Deprecated.Gets the current kick message that will be used if getResult() != Result.ALLOWEDvoidkickMessage(Component message) Deprecated.Sets the kick message to display if getResult() != Result.ALLOWEDvoidsetKickMessage(@NotNull String message) Deprecated.in favour ofkickMessage(net.kyori.adventure.text.Component)voidDeprecated.Sets the new result of the login, as an enumMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerPreLoginEvent@Deprecated public PlayerPreLoginEvent(@NotNull @NotNull String name, @NotNull @NotNull InetAddress ipAddress) Deprecated.
- 
PlayerPreLoginEventpublic PlayerPreLoginEvent(@NotNull @NotNull String name, @NotNull @NotNull InetAddress ipAddress, @NotNull @NotNull UUID uniqueId) Deprecated.
 
- 
- 
Method Details- 
getResultDeprecated.Gets the current result of the login, as an enum- Returns:
- Current Result of the login
 
- 
setResultDeprecated.Sets the new result of the login, as an enum- Parameters:
- result- New result to set
 
- 
kickMessageDeprecated.Gets the current kick message that will be used if getResult() != Result.ALLOWED- Returns:
- Current kick message
 
- 
kickMessageDeprecated.Sets the kick message to display if getResult() != Result.ALLOWED- Parameters:
- message- New kick message
 
- 
disallowpublic void disallow(@NotNull @NotNull PlayerPreLoginEvent.Result result, @NotNull Component message) Deprecated.Disallows the player from logging in, with the given reason- Parameters:
- result- New result for disallowing the player
- message- Kick message to display to the user
 
- 
getKickMessageDeprecated.in favour ofkickMessage()Gets the current kick message that will be used if getResult() != Result.ALLOWED- Returns:
- Current kick message
 
- 
setKickMessageDeprecated.in favour ofkickMessage(net.kyori.adventure.text.Component)Sets the kick message to display if getResult() != Result.ALLOWED- Parameters:
- message- New kick message
 
- 
allowpublic void allow()Deprecated.Allows the player to log in
- 
disallow@Deprecated public void disallow(@NotNull @NotNull PlayerPreLoginEvent.Result result, @NotNull @NotNull String message) Deprecated.Disallows the player from logging in, with the given reason- Parameters:
- result- New result for disallowing the player
- message- Kick message to display to the user
 
- 
getNameDeprecated.Gets the player's name.- Returns:
- the player's name
 
- 
getAddressDeprecated.Gets the player IP address.- Returns:
- The IP address
 
- 
getHandlersDeprecated.- Specified by:
- getHandlersin class- Event
 
- 
getUniqueIdDeprecated.Gets the player's unique ID.- Returns:
- The unique ID
 
- 
getHandlerListDeprecated.
 
- 
AsyncPlayerPreLoginEventis preferred to keep the secondary threads asynchronous.