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:
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