AsyncPlayerPreLoginEvent is preferred to keep the secondary threads
     asynchronous.@Deprecated public class PlayerPreLoginEvent extends Event
| Modifier and Type | Class | Description | 
|---|---|---|
static class  | 
PlayerPreLoginEvent.Result | 
 Deprecated.  
Basic kick reasons for communicating to plugins 
 | 
| Constructor | Description | 
|---|---|
PlayerPreLoginEvent(String name,
                   InetAddress ipAddress) | 
 Deprecated.  
 | 
PlayerPreLoginEvent(String name,
                   InetAddress ipAddress,
                   UUID uniqueId) | 
 Deprecated.  
  | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
allow() | 
 Deprecated.  
Allows the player to log in 
 | 
void | 
disallow(PlayerPreLoginEvent.Result result,
        String message) | 
 Deprecated.  
Disallows the player from logging in, with the given reason 
 | 
InetAddress | 
getAddress() | 
 Deprecated.  
Gets the player IP address. 
 | 
static HandlerList | 
getHandlerList() | 
 Deprecated.  
  | 
HandlerList | 
getHandlers() | 
 Deprecated.  
  | 
String | 
getKickMessage() | 
 Deprecated.  
Gets the current kick message that will be used if getResult() !=
 Result.ALLOWED 
 | 
String | 
getName() | 
 Deprecated.  
Gets the player's name. 
 | 
PlayerPreLoginEvent.Result | 
getResult() | 
 Deprecated.  
Gets the current result of the login, as an enum 
 | 
UUID | 
getUniqueId() | 
 Deprecated.  
Gets the player's unique ID. 
 | 
void | 
setKickMessage(String message) | 
 Deprecated.  
Sets the kick message to display if getResult() != Result.ALLOWED 
 | 
void | 
setResult(PlayerPreLoginEvent.Result result) | 
 Deprecated.  
Sets the new result of the login, as an enum 
 | 
getEventName, isAsynchronous@Deprecated public PlayerPreLoginEvent(@NotNull String name, @NotNull InetAddress ipAddress)
public PlayerPreLoginEvent(@NotNull
                           String name,
                           @NotNull
                           InetAddress ipAddress,
                           @NotNull
                           UUID uniqueId)
@NotNull public PlayerPreLoginEvent.Result getResult()
public void setResult(@NotNull
                      PlayerPreLoginEvent.Result result)
result - New result to set@NotNull public String getKickMessage()
public void setKickMessage(@NotNull
                           String message)
message - New kick messagepublic void allow()
public void disallow(@NotNull
                     PlayerPreLoginEvent.Result result,
                     @NotNull
                     String message)
result - New result for disallowing the playermessage - Kick message to display to the user@NotNull public String getName()
@NotNull public InetAddress getAddress()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public UUID getUniqueId()
@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.