From 802251d273ab375245e6be0a25e1eae11e89fadb Mon Sep 17 00:00:00 2001 From: Gabik21 Date: Mon, 28 Oct 2019 20:49:11 +0100 Subject: [PATCH] Add previous server to toString method --- .../api/event/player/ServerConnectedEvent.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 c38dc12c8..661cd1480 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 @@ -37,9 +37,10 @@ public final class ServerConnectedEvent { @Override public String toString() { - return "ServerConnectedEvent{" - + "player=" + player - + ", server=" + server - + '}'; + return "ServerConnectedEvent{" + + "player=" + player + + ", server=" + server + + ", previousServer=" + previousServer + + '}'; } }