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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Basic kick reasons for communicating to plugins -
Constructor Summary
ConstructorsConstructorDescriptionPlayerPreLoginEvent(String name, InetAddress ipAddress)Deprecated.PlayerPreLoginEvent(String name, InetAddress ipAddress, UUID uniqueId)Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidallow()Deprecated.Allows the player to log invoiddisallow(PlayerPreLoginEvent.Result result, String message)Deprecated.Disallows the player from logging in, with the given reasonDeprecated.Gets the player IP address.static HandlerListDeprecated.Deprecated.Deprecated.Gets the current kick message that will be used if getResult() != Result.ALLOWEDgetName()Deprecated.Gets the player's name.Deprecated.Gets the current result of the login, as an enumDeprecated.Gets the player's unique ID.voidsetKickMessage(String message)Deprecated.Sets the kick message to display if getResult() != Result.ALLOWEDvoidsetResult(PlayerPreLoginEvent.Result result)Deprecated.Sets the new result of the login, as an enumMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getResult
Deprecated.Gets the current result of the login, as an enum- Returns:
- Current Result of the login
-
setResult
Deprecated.Sets the new result of the login, as an enum- Parameters:
result- New result to set
-
getKickMessage
Deprecated.Gets the current kick message that will be used if getResult() != Result.ALLOWED- Returns:
- Current kick message
-
setKickMessage
Deprecated.Sets the kick message to display if getResult() != Result.ALLOWED- Parameters:
message- New kick message
-
allow
public void allow()Deprecated.Allows the player to log in -
disallow
Deprecated.Disallows the player from logging in, with the given reason- Parameters:
result- New result for disallowing the playermessage- Kick message to display to the user
-
getName
Deprecated.Gets the player's name.- Returns:
- the player's name
-
getAddress
Deprecated.Gets the player IP address.- Returns:
- The IP address
-
getHandlers
Deprecated.- Specified by:
getHandlersin classEvent
-
getUniqueId
Deprecated.Gets the player's unique ID.- Returns:
- The unique ID
-
getHandlerList
Deprecated.
-
AsyncPlayerPreLoginEventis preferred to keep the secondary threads asynchronous.