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