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 2019-05-11 23:17:59 +01:00
parent ff37ad176b
commit 1ebed37297
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
4 changed files with 1 additions and 24 deletions

View File

@ -212,11 +212,6 @@ public class LPBukkitBootstrap extends JavaPlugin implements LuckPermsBootstrap
return getServer().getVersion() + " - " + getServer().getBukkitVersion();
}
@Override
public String getServerName() {
return getServer().getServerName();
}
@Override
public Path getDataDirectory() {
return getDataFolder().toPath().toAbsolutePath();

View File

@ -556,10 +556,6 @@ vault-debug: false
# - Useful if you're having issues with UUID forwarding or data not being loaded.
debug-logins: false
# If LuckPerms should use the "server-name" property from the "server.properties" file as the
# "server" option within LuckPerms.
use-server-properties-name: false
# If LuckPerms should allow usernames with non alphanumeric characters.
#
# - Note that due to the design of the storage implementation, usernames must still be 16 characters

View File

@ -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.

View File

@ -168,11 +168,6 @@ public class LPNukkitBootstrap extends PluginBase implements LuckPermsBootstrap
return getServer().getVersion() + " - " + getServer().getNukkitVersion();
}
@Override
public String getServerName() {
return getServer().getServerUniqueId().toString();
}
@Override
public Path getDataDirectory() {
return getDataFolder().toPath().toAbsolutePath();