Package | Description |
---|---|
net.md_5.bungee.api | |
net.md_5.bungee.api.connection | |
net.md_5.bungee.api.event |
Modifier and Type | Method and Description |
---|---|
ServerConnectEvent.Reason |
ServerConnectRequest.getReason()
Reason for connecting to server.
|
Modifier and Type | Method and Description |
---|---|
ServerConnectRequest.Builder |
ServerConnectRequest.Builder.reason(ServerConnectEvent.Reason reason)
Reason for connecting to server.
|
Modifier and Type | Method and Description |
---|---|
void |
ProxiedPlayer.connect(ServerInfo target,
Callback<Boolean> callback,
ServerConnectEvent.Reason reason)
Connects / transfers this user to the specified connection, gracefully
closing the current one.
|
void |
ProxiedPlayer.connect(ServerInfo target,
ServerConnectEvent.Reason reason)
Connects / transfers this user to the specified connection, gracefully
closing the current one.
|
Modifier and Type | Method and Description |
---|---|
ServerConnectEvent.Reason |
ServerConnectEvent.getReason()
Reason for connecting to a new server.
|
static ServerConnectEvent.Reason |
ServerConnectEvent.Reason.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConnectEvent.Reason[] |
ServerConnectEvent.Reason.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ServerConnectEvent(ProxiedPlayer player,
ServerInfo target,
ServerConnectEvent.Reason reason)
Deprecated.
|
ServerConnectEvent(ProxiedPlayer player,
ServerInfo target,
ServerConnectEvent.Reason reason,
ServerConnectRequest request) |
Copyright © 2012–2020 SpigotMC. All rights reserved.