Add option to pull server setting from the server.properties file
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user