From bc8756f7151e7283694961930badb0a775012eca Mon Sep 17 00:00:00 2001 From: Gabik21 Date: Thu, 31 Oct 2019 19:31:47 +0100 Subject: [PATCH] Readd old constructor --- .../api/event/player/ServerConnectedEvent.java | 5 +++++ 1 file changed, 5 insertions(+) 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 b8c9cb4cb..0609798c1 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 @@ -29,6 +29,11 @@ public final class ServerConnectedEvent { this.previousServer = previousServer; } + @Deprecated + public ServerConnectedEvent(Player player, RegisteredServer server) { + this(player, server, null); + } + public Player getPlayer() { return player; }