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:
Luck committed 2019-05-11 23:17:59 +01:00
1 parent ff37ad176b
commit 1ebed37297
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.