Fix typo with env var reading (#3345)

* resolves LuckPerms/LuckPerms#3339

* change server name from env var => add to a separate option for this

* fix missing variable assignment
This commit is contained in:
Marton Schneider 2022-03-18 22:01:01 +01:00 committed by GitHub
parent eeec818286
commit 405c5c3cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ public final class ConfigKeys {
server = System.getProperty("luckperms.server", "global").toLowerCase(Locale.ROOT);
}
if (server.equals("load-from-environment-variable")) {
System.getenv().getOrDefault("LUCKPERMS_SERVER", "global").toLowerCase(Locale.ROOT);
server = System.getenv().getOrDefault("LUCKPERMS_SERVER", "global").toLowerCase(Locale.ROOT);
}
return server;
});