From bc86a12c57e8e36952f1927cd63f35b7024e4972 Mon Sep 17 00:00:00 2001 From: Leymooo Date: Wed, 12 Sep 2018 11:43:33 +0300 Subject: [PATCH 1/2] expand PreLoginComponentResult with force offline mode --- .../api/event/connection/PreLoginEvent.java | 25 ++++++++++++++++--- .../client/LoginSessionHandler.java | 2 +- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java b/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java index ef8edfb9f..9d0620f8b 100644 --- a/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java @@ -56,31 +56,41 @@ public class PreLoginEvent implements ResultedEvent Date: Wed, 12 Sep 2018 16:28:34 +0300 Subject: [PATCH 2/2] I think we dont need this comment --- .../api/event/connection/PreLoginEvent.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java b/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java index 9d0620f8b..36d7b98c0 100644 --- a/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/connection/PreLoginEvent.java @@ -52,7 +52,7 @@ public class PreLoginEvent implements ResultedEvent