From ad291803eaa117f284dcf8c637341fe49a3e97fc Mon Sep 17 00:00:00 2001 From: Gabik21 Date: Mon, 28 Oct 2019 21:18:53 +0100 Subject: [PATCH] Add missing JavaDoc --- .../api/event/player/ServerConnectedEvent.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/player/ServerConnectedEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/ServerConnectedEvent.java index 661cd1480..7a61883ca 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/ServerConnectedEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/ServerConnectedEvent.java @@ -16,6 +16,12 @@ public final class ServerConnectedEvent { private final RegisteredServer server; private final @Nullable RegisteredServer previousServer; + /** + * Constructs a ServerConnectedEvent. + * @param player the player that was connected + * @param server the server the player was connected to + * @param previousServer the server the player was previously connected to + */ public ServerConnectedEvent(Player player, RegisteredServer server, @Nullable RegisteredServer previousServer) { this.player = Preconditions.checkNotNull(player, "player"); @@ -37,10 +43,10 @@ public final class ServerConnectedEvent { @Override public String toString() { - return "ServerConnectedEvent{" + - "player=" + player + - ", server=" + server + - ", previousServer=" + previousServer + - '}'; + return "ServerConnectedEvent{" + + "player=" + player + + ", server=" + server + + ", previousServer=" + previousServer + + '}'; } }