mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Allow server name to be specified with an env var (#3341)
This commit is contained in:
parent
138f2c1b3e
commit
eeec818286
@ -93,6 +93,9 @@ public final class ConfigKeys {
|
||||
if (server.equals("load-from-system-property")) {
|
||||
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);
|
||||
}
|
||||
return server;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user