From 801ae4f33db9f49444a901afb5c192e8d43e8d4d Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 3 Jul 2020 17:26:11 -0400 Subject: [PATCH] Add one more case to disconnectedDuringLogin() --- .../velocitypowered/api/event/connection/DisconnectEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/connection/DisconnectEvent.java b/api/src/main/java/com/velocitypowered/api/event/connection/DisconnectEvent.java index fbbb7b5ac..77377e5c4 100644 --- a/api/src/main/java/com/velocitypowered/api/event/connection/DisconnectEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/connection/DisconnectEvent.java @@ -1,6 +1,7 @@ package com.velocitypowered.api.event.connection; import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CANCELLED_BY_PROXY; +import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CONFLICTING_LOGIN; import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.SUCCESSFUL_LOGIN; import com.google.common.base.Preconditions; @@ -37,7 +38,7 @@ public final class DisconnectEvent { @Deprecated public boolean disconnectedDuringLogin() { - return this.loginStatus == CANCELLED_BY_PROXY; + return this.loginStatus == CANCELLED_BY_PROXY || this.loginStatus == CONFLICTING_LOGIN; } public LoginStatus getLoginStatus() {