mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-13 19:34:05 +00:00
Cleanup configuration files slightly
This commit is contained in:
7 files changed
+45
-34
No files matched your search
@@ -139,24 +139,25 @@ data:
|
||||
# useUnicode: true
|
||||
# characterEncoding: utf8
|
||||
#
|
||||
# You can also use this section to disable SSL connections, by setting:
|
||||
# useSSL: false
|
||||
# verifyServerCertificate: false
|
||||
# You can also use this section to disable SSL connections, by uncommenting the 'useSSL' and
|
||||
# 'verifyServerCertificate' options below.
|
||||
properties:
|
||||
useUnicode: true
|
||||
characterEncoding: utf8
|
||||
#useSSL: false
|
||||
#verifyServerCertificate: false
|
||||
|
||||
# The prefix for all LuckPerms SQL tables.
|
||||
# - Change this is you want to use different tables for different servers.
|
||||
table_prefix: 'luckperms_'
|
||||
table-prefix: 'luckperms_'
|
||||
|
||||
# The prefix to use for all LuckPerms collections. Change this if you want to use different
|
||||
# collections for different servers. The default is no prefix.
|
||||
mongodb_collection_prefix: ''
|
||||
mongodb-collection-prefix: ''
|
||||
|
||||
# MongoDB ClientConnectionURI for use with replica sets and custom connection options
|
||||
# - See https://docs.mongodb.com/manual/reference/connection-string/
|
||||
mongodb_connection_URI: ''
|
||||
mongodb-connection-uri: ''
|
||||
|
||||
# Define settings for a "split" storage setup.
|
||||
#
|
||||
|
||||
@@ -136,24 +136,25 @@ data:
|
||||
# useUnicode: true
|
||||
# characterEncoding: utf8
|
||||
#
|
||||
# You can also use this section to disable SSL connections, by setting:
|
||||
# useSSL: false
|
||||
# verifyServerCertificate: false
|
||||
# You can also use this section to disable SSL connections, by uncommenting the 'useSSL' and
|
||||
# 'verifyServerCertificate' options below.
|
||||
properties:
|
||||
useUnicode: true
|
||||
characterEncoding: utf8
|
||||
#useSSL: false
|
||||
#verifyServerCertificate: false
|
||||
|
||||
# The prefix for all LuckPerms SQL tables.
|
||||
# - Change this is you want to use different tables for different servers.
|
||||
table_prefix: 'luckperms_'
|
||||
table-prefix: 'luckperms_'
|
||||
|
||||
# The prefix to use for all LuckPerms collections. Change this if you want to use different
|
||||
# collections for different servers. The default is no prefix.
|
||||
mongodb_collection_prefix: ''
|
||||
mongodb-collection-prefix: ''
|
||||
|
||||
# MongoDB ClientConnectionURI for use with replica sets and custom connection options
|
||||
# - See https://docs.mongodb.com/manual/reference/connection-string/
|
||||
mongodb_connection_URI: ''
|
||||
mongodb-connection-uri: ''
|
||||
|
||||
# Define settings for a "split" storage setup.
|
||||
#
|
||||
|
||||
@@ -461,17 +461,23 @@ public final class ConfigKeys {
|
||||
/**
|
||||
* The prefix for any SQL tables
|
||||
*/
|
||||
public static final ConfigKey<String> SQL_TABLE_PREFIX = enduringKey(stringKey("data.table_prefix", "luckperms_"));
|
||||
public static final ConfigKey<String> SQL_TABLE_PREFIX = enduringKey(customKey(c -> {
|
||||
return c.getString("data.table-prefix", c.getString("data.table_prefix", "luckperms_"));
|
||||
}));
|
||||
|
||||
/**
|
||||
* The prefix for any MongoDB collections
|
||||
*/
|
||||
public static final ConfigKey<String> MONGODB_COLLECTION_PREFIX = enduringKey(stringKey("data.mongodb_collection_prefix", ""));
|
||||
public static final ConfigKey<String> MONGODB_COLLECTION_PREFIX = enduringKey(customKey(c -> {
|
||||
return c.getString("data.mongodb-collection-prefix", c.getString("data.mongodb_collection_prefix", ""));
|
||||
}));
|
||||
|
||||
/**
|
||||
* MongoDB ClientConnectionURI to override default connection options
|
||||
*/
|
||||
public static final ConfigKey<String> MONGODB_CONNECTION_URI = enduringKey(stringKey("data.mongodb_connection_URI", ""));
|
||||
public static final ConfigKey<String> MONGODB_CONNECTION_URI = enduringKey(customKey(c -> {
|
||||
return c.getString("data.mongodb-connection-uri", c.getString("data.mongodb_connection_URI", ""));
|
||||
}));
|
||||
|
||||
/**
|
||||
* The name of the storage method being used
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ public final class LuckPermsSubscriptionMap extends HashMap<String, Set<Permissi
|
||||
|
||||
String permission = ((String) key);
|
||||
|
||||
Set<Permissible> result = super.get(key);
|
||||
LPSubscriptionValueSet result = (LPSubscriptionValueSet) super.get(key);
|
||||
if (result == null) {
|
||||
// calculate a new map - always!
|
||||
result = new LPSubscriptionValueSet(permission);
|
||||
|
||||
@@ -139,24 +139,25 @@ data:
|
||||
# useUnicode: true
|
||||
# characterEncoding: utf8
|
||||
#
|
||||
# You can also use this section to disable SSL connections, by setting:
|
||||
# useSSL: false
|
||||
# verifyServerCertificate: false
|
||||
# You can also use this section to disable SSL connections, by uncommenting the 'useSSL' and
|
||||
# 'verifyServerCertificate' options below.
|
||||
properties:
|
||||
useUnicode: true
|
||||
characterEncoding: utf8
|
||||
#useSSL: false
|
||||
#verifyServerCertificate: false
|
||||
|
||||
# The prefix for all LuckPerms SQL tables.
|
||||
# - Change this is you want to use different tables for different servers.
|
||||
table_prefix: 'luckperms_'
|
||||
table-prefix: 'luckperms_'
|
||||
|
||||
# The prefix to use for all LuckPerms collections. Change this if you want to use different
|
||||
# collections for different servers. The default is no prefix.
|
||||
mongodb_collection_prefix: ''
|
||||
mongodb-collection-prefix: ''
|
||||
|
||||
# MongoDB ClientConnectionURI for use with replica sets and custom connection options
|
||||
# - See https://docs.mongodb.com/manual/reference/connection-string/
|
||||
mongodb_connection_URI: ''
|
||||
mongodb-connection-uri: ''
|
||||
|
||||
# Define settings for a "split" storage setup.
|
||||
#
|
||||
|
||||
@@ -139,26 +139,27 @@ data {
|
||||
# useUnicode = true
|
||||
# characterEncoding = "utf8"
|
||||
#
|
||||
# You can also use this section to disable SSL connections, by setting:
|
||||
# useSSL = false
|
||||
# verifyServerCertificate = false
|
||||
# You can also use this section to disable SSL connections, by uncommenting the 'useSSL' and
|
||||
# 'verifyServerCertificate' options below.
|
||||
properties {
|
||||
useUnicode = true
|
||||
characterEncoding = "utf8"
|
||||
#useSSL: false
|
||||
#verifyServerCertificate: false
|
||||
}
|
||||
}
|
||||
|
||||
# The prefix for all LuckPerms SQL tables.
|
||||
# - Change this is you want to use different tables for different servers.
|
||||
table_prefix = "luckperms_"
|
||||
table-prefix = "luckperms_"
|
||||
|
||||
# The prefix to use for all LuckPerms collections. Change this if you want to use different
|
||||
# collections for different servers. The default is no prefix.
|
||||
mongodb_collection_prefix = ""
|
||||
mongodb-collection-prefix = ""
|
||||
|
||||
# MongoDB ClientConnectionURI for use with replica sets and custom connection options
|
||||
# - See https://docs.mongodb.com/manual/reference/connection-string/
|
||||
mongodb_connection_URI = ""
|
||||
mongodb-connection-uri = ""
|
||||
}
|
||||
|
||||
# Define settings for a "split" storage setup.
|
||||
|
||||
@@ -129,24 +129,25 @@ data:
|
||||
# useUnicode: true
|
||||
# characterEncoding: utf8
|
||||
#
|
||||
# You can also use this section to disable SSL connections, by setting:
|
||||
# useSSL: false
|
||||
# verifyServerCertificate: false
|
||||
# You can also use this section to disable SSL connections, by uncommenting the 'useSSL' and
|
||||
# 'verifyServerCertificate' options below.
|
||||
properties:
|
||||
useUnicode: true
|
||||
characterEncoding: utf8
|
||||
#useSSL: false
|
||||
#verifyServerCertificate: false
|
||||
|
||||
# The prefix for all LuckPerms SQL tables.
|
||||
# - Change this is you want to use different tables for different servers.
|
||||
table_prefix: 'luckperms_'
|
||||
table-prefix: 'luckperms_'
|
||||
|
||||
# The prefix to use for all LuckPerms collections. Change this if you want to use different
|
||||
# collections for different servers. The default is no prefix.
|
||||
mongodb_collection_prefix: ''
|
||||
mongodb-collection-prefix: ''
|
||||
|
||||
# MongoDB ClientConnectionURI for use with replica sets and custom connection options
|
||||
# - See https://docs.mongodb.com/manual/reference/connection-string/
|
||||
mongodb_connection_URI: ''
|
||||
mongodb-connection-uri: ''
|
||||
|
||||
# Define settings for a "split" storage setup.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user