mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 22:33:07 +00:00
Remove use-server-properties-name option
This was removed from Minecraft 1.14, and isn't something I feel was ever really necessary to support.
This commit is contained in:
4 files changed
+1
-24
No files matched your search
@@ -76,16 +76,7 @@ public final class ConfigKeys {
|
||||
/**
|
||||
* The name of the server
|
||||
*/
|
||||
public static final ConfigKey<String> SERVER = customKey(c -> {
|
||||
if (c.getBoolean("use-server-properties-name", false)) {
|
||||
String serverName = c.getPlugin().getBootstrap().getServerName();
|
||||
if (serverName != null && !serverName.equals("Unknown Server")) {
|
||||
return serverName.toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
return c.getString("server", "global").toLowerCase();
|
||||
});
|
||||
public static final ConfigKey<String> SERVER = lowercaseStringKey("server", "global");
|
||||
|
||||
/**
|
||||
* How many minutes to wait between syncs. A value <= 0 will disable syncing.
|
||||
|
||||
Reference in new issue
Block a user