3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

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