Package | Description |
---|---|
org.bukkit.event.player |
Modifier and Type | Method and Description |
---|---|
@NotNull PlayerLoginEvent.Result |
PlayerLoginEvent.getResult()
Gets the current result of the login, as an enum
|
static PlayerLoginEvent.Result |
PlayerLoginEvent.Result.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerLoginEvent.Result[] |
PlayerLoginEvent.Result.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerLoginEvent.disallow(@NotNull PlayerLoginEvent.Result result,
net.kyori.adventure.text.Component message)
Disallows the player from logging in, with the given reason
|
void |
PlayerLoginEvent.disallow(@NotNull PlayerLoginEvent.Result result,
@NotNull String message)
Deprecated.
|
void |
PlayerLoginEvent.setResult(@NotNull PlayerLoginEvent.Result result)
Sets the new result of the login, as an enum
|
Constructor and Description |
---|
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull PlayerLoginEvent.Result result,
net.kyori.adventure.text.Component message,
@NotNull InetAddress realAddress)
This constructor pre-configures the event with a result and message
|
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull PlayerLoginEvent.Result result,
@NotNull String message,
@NotNull InetAddress realAddress)
|
Copyright © 2021. All rights reserved.