3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 00:23:03 +01:00

Add a setter to the auth type to allow for changing at runtime (#784)

This is mainly for GeyserConnect but may be useful in other cases
Dieser Commit ist enthalten in:
rtm516 2020-06-19 13:50:10 +01:00 committet von GitHub
Ursprung 38ee19a32a
Commit 5eb7c9d1dc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -31,6 +31,7 @@ import com.nukkitx.protocol.bedrock.BedrockPacketCodec;
import com.nukkitx.protocol.bedrock.BedrockServer; import com.nukkitx.protocol.bedrock.BedrockServer;
import com.nukkitx.protocol.bedrock.v390.Bedrock_v390; import com.nukkitx.protocol.bedrock.v390.Bedrock_v390;
import lombok.Getter; import lombok.Getter;
import lombok.Setter;
import org.geysermc.common.AuthType; import org.geysermc.common.AuthType;
import org.geysermc.common.PlatformType; import org.geysermc.common.PlatformType;
import org.geysermc.connector.bootstrap.GeyserBootstrap; import org.geysermc.connector.bootstrap.GeyserBootstrap;
@ -79,6 +80,7 @@ public class GeyserConnector {
private static GeyserConnector instance; private static GeyserConnector instance;
private RemoteServer remoteServer; private RemoteServer remoteServer;
@Setter
private AuthType authType; private AuthType authType;
private boolean shuttingDown = false; private boolean shuttingDown = false;