程序包 | 说明 |
---|---|
org.bukkit.event.player |
限定符和类型 | 方法和说明 |
---|---|
PlayerLoginEvent.Result |
PlayerLoginEvent.getResult()
获取当前的登录状态.
|
static PlayerLoginEvent.Result |
PlayerLoginEvent.Result.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PlayerLoginEvent.Result[] |
PlayerLoginEvent.Result.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
void |
PlayerLoginEvent.disallow(PlayerLoginEvent.Result result,
java.lang.String message)
以给定的理由不允许玩家登录
原文:Disallows the player from logging in, with the given reason
|
void |
PlayerLoginEvent.setResult(PlayerLoginEvent.Result result)
设置登录的状态.
|
构造器和说明 |
---|
PlayerLoginEvent(Player player,
java.lang.String hostname,
java.net.InetAddress address,
PlayerLoginEvent.Result result,
java.lang.String message)
此构造器预配置事件的结果和消息.
|