mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-31 20:52:10 +01: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:
parent
ff37ad176b
commit
1ebed37297
@ -212,11 +212,6 @@ public class LPBukkitBootstrap extends JavaPlugin implements LuckPermsBootstrap
|
|||||||
return getServer().getVersion() + " - " + getServer().getBukkitVersion();
|
return getServer().getVersion() + " - " + getServer().getBukkitVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getServerName() {
|
|
||||||
return getServer().getServerName();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path getDataDirectory() {
|
public Path getDataDirectory() {
|
||||||
return getDataFolder().toPath().toAbsolutePath();
|
return getDataFolder().toPath().toAbsolutePath();
|
||||||
|
@ -556,10 +556,6 @@ vault-debug: false
|
|||||||
# - Useful if you're having issues with UUID forwarding or data not being loaded.
|
# - Useful if you're having issues with UUID forwarding or data not being loaded.
|
||||||
debug-logins: false
|
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.
|
# 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
|
# - Note that due to the design of the storage implementation, usernames must still be 16 characters
|
||||||
|
@ -76,16 +76,7 @@ public final class ConfigKeys {
|
|||||||
/**
|
/**
|
||||||
* The name of the server
|
* The name of the server
|
||||||
*/
|
*/
|
||||||
public static final ConfigKey<String> SERVER = customKey(c -> {
|
public static final ConfigKey<String> SERVER = lowercaseStringKey("server", "global");
|
||||||
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();
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How many minutes to wait between syncs. A value <= 0 will disable syncing.
|
* How many minutes to wait between syncs. A value <= 0 will disable syncing.
|
||||||
|
@ -168,11 +168,6 @@ public class LPNukkitBootstrap extends PluginBase implements LuckPermsBootstrap
|
|||||||
return getServer().getVersion() + " - " + getServer().getNukkitVersion();
|
return getServer().getVersion() + " - " + getServer().getNukkitVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getServerName() {
|
|
||||||
return getServer().getServerUniqueId().toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path getDataDirectory() {
|
public Path getDataDirectory() {
|
||||||
return getDataFolder().toPath().toAbsolutePath();
|
return getDataFolder().toPath().toAbsolutePath();
|
||||||
|
Loading…
Reference in New Issue
Block a user