From 41471da9dbd9c5411fcd7c1b0cf022cfc3ff9fc3 Mon Sep 17 00:00:00 2001 From: MrKeith Date: Sun, 4 Dec 2022 10:15:30 -0800 Subject: [PATCH] #3405: Fix typo in ProxiedPlayer docs and add docs to ServerDisconnectEvent --- .../java/net/md_5/bungee/api/connection/ProxiedPlayer.java | 2 +- .../net/md_5/bungee/api/event/ServerDisconnectEvent.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java b/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java index e7ab62e5..c3848b3c 100644 --- a/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java +++ b/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java @@ -15,7 +15,7 @@ import net.md_5.bungee.api.event.ServerConnectEvent; import net.md_5.bungee.api.score.Scoreboard; /** - * Represents a player who's connection is being connected to somewhere else, + * Represents a player whose connection is being connected to somewhere else, * whether it be a remote or embedded server. */ public interface ProxiedPlayer extends Connection, CommandSender diff --git a/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java b/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java index 0ba38b41..309e1723 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java @@ -9,6 +9,13 @@ import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.plugin.Event; +/** + * Called when the player is disconnected from a server, for example during + * server switching. + * + * If the player is kicked from a server, {@link ServerKickEvent} will be called + * instead. + */ @Data @AllArgsConstructor @ToString(callSuper = false)