Add option to pull server setting from the server.properties file

This commit is contained in:
Luck
2017-12-11 19:40:39 +00:00
Unverified
parent a765be0a6f
commit e5ce64266f
7 changed files with 34 additions and 7 deletions
@@ -434,7 +434,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
}
@Override
public String getServerName() {
public String getServerBrand() {
return getServer().getName();
}
@@ -443,6 +443,11 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
return getServer().getVersion() + " - " + getServer().getBukkitVersion();
}
@Override
public String getServerName() {
return getServer().getServerName();
}
@Override
public File getDataDirectory() {
return super.getDataFolder();
+4
View File
@@ -70,6 +70,10 @@ use-server-uuids: true
# in the LuckPerms cache.
use-server-uuid-cache: 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 set to true, LuckPerms will allow usernames with non alphanumeric characters.
#
# Note that due to the design of the storage implementation, usernames must still be