-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
api/src/main/java/net/md_5/bungee/api/event/ServerConnectFailEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package net.md_5.bungee.api.event; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
import net.md_5.bungee.api.ServerConnectRequest; | ||
import net.md_5.bungee.api.connection.ProxiedPlayer; | ||
import net.md_5.bungee.api.connection.Server; | ||
import net.md_5.bungee.api.plugin.Event; | ||
|
||
/** | ||
* This event is called when a connection to a server fails. | ||
* This can occur when the server is offline, the player cannot login due to version mismatch, or the server is full. | ||
*/ | ||
@Data | ||
@ToString(callSuper = false) | ||
@EqualsAndHashCode(callSuper = false) | ||
public class ServerConnectFailEvent extends Event | ||
{ | ||
|
||
/** | ||
* Player whom the server is for. | ||
*/ | ||
private final ProxiedPlayer player; | ||
/** | ||
* The server itself. | ||
*/ | ||
private final Server server; | ||
/** | ||
* Request used to connect to given server. | ||
*/ | ||
private final ServerConnectRequest request; | ||
/** | ||
* Cancelled state. | ||
*/ | ||
private boolean cancelled; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters