[FEATURE] Add serverName to env configuration in ServerWrapper

This commit is contained in:
Gravita 2025-02-24 19:21:10 +07:00
parent d4b69195b3
commit 2e93102106

View file

@ -310,6 +310,7 @@ public void apply() {
public void applyEnv() { public void applyEnv() {
this.authId = applyEnvOrDefault("LAUNCHSERVER_AUTH_ID", this.authId); this.authId = applyEnvOrDefault("LAUNCHSERVER_AUTH_ID", this.authId);
this.address = applyEnvOrDefault("LAUNCHSERVER_ADDRESS", this.address); this.address = applyEnvOrDefault("LAUNCHSERVER_ADDRESS", this.address);
this.serverName = applyEnvOrDefault("LAUNCHSERVER_SERVER_NAME", this.serverName);
this.encodedServerEcPublicKey = applyEnvOrDefault("LAUNCHSERVER_EC_PUBLIC_KEY", Base64.getUrlDecoder()::decode, null); this.encodedServerEcPublicKey = applyEnvOrDefault("LAUNCHSERVER_EC_PUBLIC_KEY", Base64.getUrlDecoder()::decode, null);
this.encodedServerRsaPublicKey = applyEnvOrDefault("LAUNCHSERVER_RSA_PUBLIC_KEY", Base64.getUrlDecoder()::decode, null); this.encodedServerRsaPublicKey = applyEnvOrDefault("LAUNCHSERVER_RSA_PUBLIC_KEY", Base64.getUrlDecoder()::decode, null);
{ {