Add one more case to disconnectedDuringLogin()

This commit is contained in:
Andrew Steinborn 2020-07-03 17:26:11 -04:00
parent 1938013ab2
commit 801ae4f33d

View File

@ -1,6 +1,7 @@
package com.velocitypowered.api.event.connection; 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.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 static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.SUCCESSFUL_LOGIN;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
@ -37,7 +38,7 @@ public final class DisconnectEvent {
@Deprecated @Deprecated
public boolean disconnectedDuringLogin() { public boolean disconnectedDuringLogin() {
return this.loginStatus == CANCELLED_BY_PROXY; return this.loginStatus == CANCELLED_BY_PROXY || this.loginStatus == CONFLICTING_LOGIN;
} }
public LoginStatus getLoginStatus() { public LoginStatus getLoginStatus() {