From c3fd559ac295d720a6a935f62e93a317f2c16f8b Mon Sep 17 00:00:00 2001 From: kashike Date: Wed, 12 Sep 2018 22:41:51 -0700 Subject: [PATCH] ServerPreConnectEvent#getInfo -> getServer --- .../api/event/player/ServerPreConnectEvent.java | 12 ++++++------ .../proxy/connection/client/ConnectedPlayer.java | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/player/ServerPreConnectEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/ServerPreConnectEvent.java index 2d86c06f8..a91f819cd 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/ServerPreConnectEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/ServerPreConnectEvent.java @@ -50,11 +50,11 @@ public class ServerPreConnectEvent implements ResultedEvent getInfo() { - return Optional.ofNullable(info); + public Optional getServer() { + return Optional.ofNullable(server); } @Override @@ -71,7 +71,7 @@ public class ServerPreConnectEvent implements ResultedEvent