AsyncPlayerPreLoginEvent
is preferred to keep the secondary threads
asynchronous.@Deprecated public class PlayerPreLoginEvent extends Event
修飾子とタイプ | クラスと説明 |
---|---|
static class |
PlayerPreLoginEvent.Result
非推奨です。
Basic kick reasons for communicating to plugins
|
コンストラクタと説明 |
---|
PlayerPreLoginEvent(String name,
InetAddress ipAddress)
非推奨です。
|
PlayerPreLoginEvent(String name,
InetAddress ipAddress,
UUID uniqueId)
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
allow()
非推奨です。
Allows the player to log in
|
void |
disallow(PlayerPreLoginEvent.Result result,
String message)
非推奨です。
Disallows the player from logging in, with the given reason
|
InetAddress |
getAddress()
非推奨です。
Gets the player IP address.
|
static HandlerList |
getHandlerList()
非推奨です。
|
HandlerList |
getHandlers()
非推奨です。
|
String |
getKickMessage()
非推奨です。
Gets the current kick message that will be used if getResult() !
|
String |
getName()
非推奨です。
Gets the player's name.
|
PlayerPreLoginEvent.Result |
getResult()
非推奨です。
Gets the current result of the login, as an enum
|
UUID |
getUniqueId()
非推奨です。
Gets the player's unique ID.
|
void |
setKickMessage(String message)
非推奨です。
Sets the kick message to display if getResult() !
|
void |
setResult(PlayerPreLoginEvent.Result result)
非推奨です。
Sets the new result of the login, as an enum
|
getEventName, isAsynchronous
@Deprecated public PlayerPreLoginEvent(String name, InetAddress ipAddress)
public PlayerPreLoginEvent(String name, InetAddress ipAddress, UUID uniqueId)
public PlayerPreLoginEvent.Result getResult()
public void setResult(PlayerPreLoginEvent.Result result)
result
- New result to setpublic String getKickMessage()
public void setKickMessage(String message)
message
- New kick messagepublic void allow()
public void disallow(PlayerPreLoginEvent.Result result, String message)
result
- New result for disallowing the playermessage
- Kick message to display to the userpublic String getName()
public InetAddress getAddress()
public HandlerList getHandlers()
getHandlers
クラス内 Event
public UUID getUniqueId()
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.