geforkt von Mirrors/Velocity
Add one more case to disconnectedDuringLogin()
Dieser Commit ist enthalten in:
Ursprung
1938013ab2
Commit
801ae4f33d
@ -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() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren