13
0
geforkt von Mirrors/Velocity

Add one more case to disconnectedDuringLogin()

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-07-03 17:26:11 -04:00
Ursprung 1938013ab2
Commit 801ae4f33d

Datei anzeigen

@ -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() {