Advertisement
Guest User

Untitled

a guest
Oct 4th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.65 KB | None | 0 0
  1. ####################################################################################################
  2. # +----------------------------------------------------------------------------------------------+ #
  3. # | __ __ ___ __ __ | #
  4. # | | | | / ` |__/ |__) |__ |__) |\/| /__` | #
  5. # | |___ \__/ \__, | \ | |___ | \ | | .__/ | #
  6. # | | #
  7. # | | #
  8. # | SOURCE CODE: https://github.com/lucko/LuckPerms | #
  9. # | WIKI: https://github.com/lucko/LuckPerms/wiki | #
  10. # | BUG REPORTS: https://github.com/lucko/LuckPerms/issues | #
  11. # | | #
  12. # | Each option in this file is documented and explained here: | #
  13. # | ==> https://github.com/lucko/LuckPerms/wiki/Configuration | #
  14. # | | #
  15. # | New options are not added to this file automatically. Default values are used if an | #
  16. # | option cannot be found. The latest config versions can be obtained at the link above. | #
  17. # +----------------------------------------------------------------------------------------------+ #
  18. ####################################################################################################
  19.  
  20. # +----------------------------------------------------------------------------------------------+ #
  21. # | | #
  22. # | ESSENTIAL SETTINGS | #
  23. # | | #
  24. # | Important settings that control how LuckPerms functions. | #
  25. # | | #
  26. # +----------------------------------------------------------------------------------------------+ #
  27.  
  28. # The name of the server, used for server specific permissions.
  29. #
  30. # - When set to "global" this setting is effectively ignored.
  31. # - In all other cases, the value here is added to all players in a "server" context.
  32. # - See: https://github.com/lucko/LuckPerms/wiki/Context
  33. server: bungee
  34.  
  35. # If the servers own UUID cache/lookup facility should be used when there is no record for a player
  36. # already in LuckPerms.
  37. #
  38. # - Since BungeeCord doesn't maintain it's own UUID cache, when this option is true, LuckPerms will
  39. # try to find a uuid for a username using RedisBungee, if installed.
  40. use-server-uuid-cache: false
  41.  
  42.  
  43.  
  44.  
  45. # +----------------------------------------------------------------------------------------------+ #
  46. # | | #
  47. # | STORAGE SETTINGS | #
  48. # | | #
  49. # | Controls which storage method LuckPerms will use to store data. | #
  50. # | | #
  51. # +----------------------------------------------------------------------------------------------+ #
  52.  
  53. # How the plugin should store data
  54. #
  55. # - The various options are explained in more detail on the wiki:
  56. # https://github.com/lucko/LuckPerms/wiki/Choosing-a-Storage-type
  57. #
  58. # - Possible options:
  59. #
  60. # | Remote databases - require connection information to be configured below
  61. # |=> MySQL
  62. # |=> MariaDB (preferred over MySQL)
  63. # |=> PostgreSQL
  64. # |=> MongoDB
  65. #
  66. # | Flatfile/local database - don't require any extra configuration
  67. # |=> H2 (preferred over SQLite)
  68. # |=> SQLite
  69. #
  70. # | Readable & editable text files - don't require any extra configuration
  71. # |=> YAML (.yml files)
  72. # |=> JSON (.json files)
  73. # |=> HOCON (.conf files)
  74. # |=> TOML (.toml files)
  75. # |
  76. # | By default, user, group and track data is separated into different files. Data can be combined
  77. # | and all stored in the same file by switching to a combined storage variant.
  78. # | Just add '-combined' to the end of the storage-method, e.g. 'yaml-combined'
  79. #
  80. # - A H2 database is the default option.
  81. # - If you want to edit data manually in "traditional" storage files, we suggest using YAML.
  82. storage-method: MariaDB
  83.  
  84. # The following block defines the settings for remote database storage methods.
  85. #
  86. # - You don't need to touch any of the settings here if you're using a local storage method!
  87. # - The connection detail options are shared between all remote storage types.
  88. data:
  89.  
  90. # Define the address and port for the database.
  91. # - The standard DB engine port is used by default
  92. # (MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017)
  93. # - Specify as "host:port" if differs
  94. address: localhost
  95.  
  96. # The name of the database to store LuckPerms data in.
  97. # - This must be created already. Don't worry about this setting if you're using MongoDB.
  98. database: luckperms
  99.  
  100. # Credentials for the database.
  101. username: luckperms
  102. password: 'QJ)OSDJWQ)E98jrfwe98zrjf93j(@*$RJ@#(*WEJRW*(QEOJRDli'
  103.  
  104. # These settings apply to the MySQL connection pool.
  105. # - The default values will be suitable for the majority of users.
  106. # - Do not change these settings unless you know what you're doing!
  107. pool-settings:
  108.  
  109. # Sets the maximum size of the MySQL connection pool.
  110. # - Basically this value will determine the maximum number of actual
  111. # connections to the database backend.
  112. # - More information about determining the size of connection pools can be found here:
  113. # https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
  114. maximum-pool-size: 10
  115.  
  116. # Sets the minimum number of idle connections that the pool will try to maintain.
  117. # - For maximum performance and responsiveness to spike demands, it is recommended to not set
  118. # this value and instead allow the pool to act as a fixed size connection pool.
  119. # (set this value to the same as 'maximum-pool-size')
  120. minimum-idle: 10
  121.  
  122. # This setting controls the maximum lifetime of a connection in the pool in milliseconds.
  123. # - The value should be at least 30 seconds less than any database or infrastructure imposed
  124. # connection time limit.
  125. maximum-lifetime: 1800000 # 30 minutes
  126.  
  127. # This setting controls the maximum number of milliseconds that the plugin will wait for a
  128. # connection from the pool, before timing out.
  129. connection-timeout: 5000 # 5 seconds
  130.  
  131. # This setting allows you to define extra properties for connections.
  132. properties:
  133. useUnicode: true
  134. characterEncoding: utf8
  135.  
  136. # The prefix for all LuckPerms SQL tables.
  137. # - Change this is you want to use different tables for different servers.
  138. table_prefix: 'luckperms_'
  139.  
  140. # The prefix to use for all LuckPerms collections. Change this if you want to use different
  141. # collections for different servers. The default is no prefix.
  142. mongodb_collection_prefix: ''
  143.  
  144. # MongoDB ClientConnectionURI for use with replica sets and custom connection options
  145. # - See https://docs.mongodb.com/manual/reference/connection-string/
  146. mongodb_connection_URI: ''
  147.  
  148. # Define settings for a "split" storage setup.
  149. #
  150. # - This allows you to define a storage method for each type of data.
  151. # - The connection options above still have to be correct for each type here.
  152. split-storage:
  153. # Don't touch this if you don't want to use split storage!
  154. enabled: false
  155. methods:
  156. # These options don't need to be modified if split storage isn't enabled.
  157. user: h2
  158. group: h2
  159. track: h2
  160. uuid: h2
  161. log: h2
  162.  
  163.  
  164.  
  165.  
  166. # +----------------------------------------------------------------------------------------------+ #
  167. # | | #
  168. # | UPDATE PROPAGATION & MESSAGING SERVICE | #
  169. # | | #
  170. # | Controls the ways in which LuckPerms will sync data & notify other servers of changes. | #
  171. # | These options are documented on greater detail on the wiki under "Instant Updates". | #
  172. # | | #
  173. # +----------------------------------------------------------------------------------------------+ #
  174.  
  175. # This option controls how frequently LuckPerms will perform a sync task.
  176. #
  177. # - A sync task will refresh all data from the storage, and ensure that the most up-to-date data is
  178. # being used by the plugin.
  179. # - This is disabled by default, as most users will not need it. However, if you're using a remote
  180. # storage type without a messaging service setup, you may wish to set this to something like 3.
  181. # - Set to -1 to disable the task completely.
  182. sync-minutes: -1
  183.  
  184. # If the file watcher should be enabled.
  185. #
  186. # - When using a file-based storage type, LuckPerms can monitor the data files for changes, and
  187. # automatically update when changes are detected.
  188. # - If you don't want this feature to be active, set this option to false.
  189. watch-files: true
  190.  
  191. # Define which messaging service should be used by the plugin.
  192. #
  193. # - If enabled and configured, LuckPerms will use the messaging service to inform other connected
  194. # servers of changes.
  195. # - Use the command "/lp networksync" to manually push changes.
  196. # - Data is NOT stored using this service. It is only used as a messaging platform.
  197. #
  198. # - If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need
  199. # for LuckPerms to poll the database for changes.
  200. #
  201. # - Possible options:
  202. # => sql Uses the SQL database to form a queue system for communication. Will only work
  203. # when 'storage-method' is set to MySQL or MariaDB. This is chosen by default if
  204. # the option is set to 'none' and SQL storage is in use. Set to 'notsql' to
  205. # disable this.
  206. # => pluginmsg Uses the plugin messaging channels to communicate with the proxy.
  207. # LuckPerms must be installed on your proxy & all connected servers backend
  208. # servers. Won't work if you have more than one BungeeCord proxy.
  209. # => redis Uses Redis pub-sub to push changes. Your server connection info must be
  210. # configured below.
  211. # => redisbungee Uses Redis pub-sub to push changes, using the RedisBungee API. You need to have
  212. # the RedisBungee plugin installed.
  213. # => none Disables the service.
  214. messaging-service: none
  215.  
  216. # If LuckPerms should automatically push updates after a change has been made with a command.
  217. auto-push-updates: true
  218.  
  219. # If LuckPerms should push logging entries to connected servers via the messaging service.
  220. push-log-entries: true
  221.  
  222. # If LuckPerms should broadcast received logging entries to players on this platform.
  223. #
  224. # - If you have LuckPerms installed on your backend servers as well as a BungeeCord proxy, you
  225. # should set this option to false on either your backends or your proxies, to avoid players being
  226. # messaged twice about log entries.
  227. broadcast-received-log-entries: false
  228.  
  229. # Settings for Redis.
  230. # Port 6379 is used by default; set address to "host:port" if differs
  231. redis:
  232. enabled: false
  233. address: localhost
  234. password: ''
  235.  
  236.  
  237.  
  238.  
  239. # +----------------------------------------------------------------------------------------------+ #
  240. # | | #
  241. # | CUSTOMIZATION SETTINGS | #
  242. # | | #
  243. # | Settings that allow admins to customize the way LuckPerms operates. | #
  244. # | | #
  245. # +----------------------------------------------------------------------------------------------+ #
  246.  
  247. # If LuckPerms should ensure all players have permission data when they connect to the server.
  248. #
  249. # - When set to true, LuckPerms will cancel login attempts if it is unable to load permissions data
  250. # for a user, of if the storage provider is unavailable.
  251. # - When set to false, LuckPerms will allow a player to connect regardless of whether their
  252. # permissions data could be loaded.
  253. # - This option does not exist on other platforms, and effectively defaults to true - however,
  254. # the option is provided on BungeeCord, as it is less likely to be so dependant on permissions.
  255. cancel-failed-logins: false
  256.  
  257. # Controls how temporary permissions/parents/meta should be accumulated.
  258. #
  259. # - The default behaviour is "deny".
  260. # - This behaviour can also be specified when the command is executed. See the command usage
  261. # documentation for more info.
  262. #
  263. # - Possible options:
  264. # => accumulate durations will be added to the existing expiry time
  265. # => replace durations will be replaced if the new duration is later than the current
  266. # expiration
  267. # => deny the command will just fail if you try to add another node with the same expiry
  268. temporary-add-behaviour: deny
  269.  
  270. # Controls how LuckPerms will determine a users "primary" group.
  271. #
  272. # - The meaning and influence of "primary groups" are explained in detail on the wiki.
  273. # - The preferred approach is to let LuckPerms automatically determine a users primary group
  274. # based on the relative weight of their parent groups.
  275. #
  276. # - Possible options:
  277. # => stored use the value stored against the users record in the file/database
  278. # => parents-by-weight just use the users most highly weighted parent
  279. # => all-parents-by-weight same as above, but calculates based upon all parents inherited from
  280. # both directly and indirectly
  281. primary-group-calculation: parents-by-weight
  282.  
  283. # If the plugin should check for "extra" permissions with users run LP commands.
  284. #
  285. # - These extra permissions allow finer control over what users can do with each command, and who
  286. # they have access to edit.
  287. # - The nature of the checks are documented on the wiki under "Argument based command permissions".
  288. # - Argument based permissions are *not* static, unlike the 'base' permissions, and will depend upon
  289. # the arguments given within the command.
  290. argument-based-command-permissions: false
  291.  
  292. # If the plugin should check whether senders are a member of a given group before they're able to
  293. # edit the groups data or add/remove other users to/from it.
  294. # Note: these limitations do not apply to the web editor!
  295. require-sender-group-membership-to-modify: false
  296.  
  297. # If the plugin should send log notifications to users whenever permissions are modified.
  298. #
  299. # - Notifications are only sent to those with the appropriate permission to receive them
  300. # - They can also be temporarily enabled/disabled on a per-user basis using
  301. # '/lp log notify <on|off>'
  302. log-notify: true
  303.  
  304. # Defines the options for prefix and suffix stacking.
  305. #
  306. # - The feature allows you to display multiple prefixes or suffixes alongside a players username in
  307. # chat.
  308. # - It is explained and documented in more detail on the wiki under "Prefix & Suffix Stacking".
  309. #
  310. # - The options are divided into separate sections for prefixes and suffixes.
  311. # - The value of 'start-spacer' is included at the start of the resultant prefix/suffix.
  312. # - The value of 'end-spacer' is included at the end of the resultant prefix/suffix.
  313. # - The value of 'middle-spacer' is included between each element in the resultant prefix/suffix.
  314. #
  315. # - Possible format options:
  316. # => highest Selects the value with the highest weight, from all values
  317. # held by or inherited by the player.
  318. #
  319. # => lowest Same as above, except takes the one with the lowest weight.
  320. #
  321. # => highest_own Selects the value with the highest weight, but will not
  322. # accept any inherited values.
  323. #
  324. # => lowest_own Same as above, except takes the value with the lowest weight.
  325. #
  326. # => highest_inherited Selects the value with the highest weight, but will only
  327. # accept inherited values.
  328. #
  329. # => lowest_inherited Same as above, except takes the value with the lowest weight.
  330. #
  331. # => highest_on_track_<track> Selects the value with the highest weight, but only if the
  332. # value was inherited from a group on the given track.
  333. #
  334. # => lowest_on_track_<track> Same as above, except takes the value with the lowest weight.
  335. #
  336. # => highest_not_on_track_<track> Selects the value with the highest weight, but only if the
  337. # value was inherited from a group not on the given track.
  338. #
  339. # => lowest_not_on_track_<track> Same as above, except takes the value with the lowest weight.
  340. meta-formatting:
  341. prefix:
  342. format:
  343. - "highest"
  344. start-spacer: ""
  345. middle-spacer: " "
  346. end-spacer: ""
  347. suffix:
  348. format:
  349. - "highest"
  350. start-spacer: ""
  351. middle-spacer: " "
  352. end-spacer: ""
  353.  
  354.  
  355.  
  356.  
  357. # +----------------------------------------------------------------------------------------------+ #
  358. # | | #
  359. # | PERMISSION CALCULATION AND INHERITANCE | #
  360. # | | #
  361. # | Modify the way permission checks, meta lookups and inheritance resolutions are handled. | #
  362. # | | #
  363. # +----------------------------------------------------------------------------------------------+ #
  364.  
  365. # The algorithm LuckPerms should use when traversing the "inheritance tree".
  366. #
  367. # - Possible options:
  368. # => breadth-first See: https://en.wikipedia.org/wiki/Breadth-first_search
  369. # => depth-first-pre-order See: https://en.wikipedia.org/wiki/Depth-first_search
  370. # => depth-first-post-order See: https://en.wikipedia.org/wiki/Depth-first_search
  371. inheritance-traversal-algorithm: depth-first-pre-order
  372.  
  373. # +----------------------------------------------------------------------------------------------+ #
  374. # | Permission resolution settings | #
  375. # +----------------------------------------------------------------------------------------------+ #
  376.  
  377. # If users on this server should have their global permissions applied.
  378. # When set to false, only server specific permissions will apply for users on this server
  379. include-global: true
  380.  
  381. # If users on this server should have their global world permissions applied.
  382. # When set to false, only world specific permissions will apply for users on this server
  383. include-global-world: true
  384.  
  385. # If users on this server should have global (non-server specific) groups applied
  386. apply-global-groups: true
  387.  
  388. # If users on this server should have global (non-world specific) groups applied
  389. apply-global-world-groups: true
  390.  
  391. # +----------------------------------------------------------------------------------------------+ #
  392. # | Inheritance settings | #
  393. # +----------------------------------------------------------------------------------------------+ #
  394.  
  395. # If the plugin should apply wildcard permissions.
  396. #
  397. # - If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered
  398. # permissions matching the wildcard.
  399. apply-wildcards: true
  400.  
  401. # If the plugin should parse regex permissions.
  402. #
  403. # - If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the
  404. # node, and resolve & apply all registered permissions matching the regex.
  405. apply-regex: true
  406.  
  407. # If the plugin should complete and apply shorthand permissions.
  408. #
  409. # - If set to true, LuckPerms will detect and expand shorthand node patterns.
  410. apply-shorthand: true
  411.  
  412. # If the plugin should apply the permissions & groups defined in the BungeeCord config.yml
  413. #
  414. # - If set to false, LuckPerms will ignore these values.
  415. apply-bungee-config-permissions: false
  416.  
  417. # +----------------------------------------------------------------------------------------------+ #
  418. # | Extra settings | #
  419. # +----------------------------------------------------------------------------------------------+ #
  420.  
  421. # Allows you to set "aliases" for the worlds sent forward for context calculation.
  422. #
  423. # - These aliases are provided in addition to the real world name. Applied recursively.
  424. # - Remove the comment characters for the default aliases to apply.
  425. world-rewrite:
  426. # world_nether: world
  427. # world_the_end: world
  428.  
  429. # Define special group weights for this server.
  430. #
  431. # - Group weights can also be applied directly to group data, using the setweight command.
  432. # - This section allows weights to be set on a per-server basis.
  433. group-weight:
  434. # admin: 10
  435.  
  436.  
  437.  
  438.  
  439. # +----------------------------------------------------------------------------------------------+ #
  440. # | | #
  441. # | FINE TUNING OPTIONS | #
  442. # | | #
  443. # | A number of more niche settings for tweaking and changing behaviour. The section also | #
  444. # | contains toggles for some more specialised features. It is only necessary to make changes to | #
  445. # | these options if you want to fine-tune LuckPerms behaviour. | #
  446. # | | #
  447. # +----------------------------------------------------------------------------------------------+ #
  448.  
  449. # +----------------------------------------------------------------------------------------------+ #
  450. # | Miscellaneous (and rarely used) settings | #
  451. # +----------------------------------------------------------------------------------------------+ #
  452.  
  453. # If LuckPerms should produce extra logging output when it handles logins.
  454. #
  455. # - Useful if you're having issues with UUID forwarding or data not being loaded.
  456. debug-logins: false
  457.  
  458. # If LuckPerms should allow usernames with non alphanumeric characters.
  459. #
  460. # - Note that due to the design of the storage implementation, usernames must still be 16 characters
  461. # or less.
  462. allow-invalid-usernames: false
  463.  
  464. # If LuckPerms should allow a users primary group to be removed with the 'parent remove' command.
  465. #
  466. # - When this happens, the plugin will set their primary group back to default.
  467. prevent-primary-group-removal: false
  468.  
  469.  
  470.  
  471.  
  472. # +----------------------------------------------------------------------------------------------+ #
  473. # | | #
  474. # | DEFAULT ASSIGNMENTS | #
  475. # | | #
  476. # +----------------------------------------------------------------------------------------------+ #
  477.  
  478. # This section allows you to define defaults to give users whenever they connect to the server.
  479. # The default assignments are highly configurable and conditional.
  480. #
  481. # There is one default assignment built into LuckPerms, which will add all users to the "default"
  482. # group if they are not a member of any other group. This setting cannot be disabled. However, you
  483. # can use this section to add more of your own.
  484. #
  485. # IMPORTANT:
  486. # In order to save storage space, LuckPerms does not store users who have no permissions defined,
  487. # and are only a member of the default group. Adding default assignments to this section will negate
  488. # this effect. It is HIGHLY RECCOMENDED that instead of assigning defaults here, you add permissions
  489. # to the "default" group, or set the "default" group to inherit other groups, and then use the
  490. # group-name-rewrite rule above.
  491. #
  492. # It is also important to note that these rules are considered every time a player logs into the
  493. # server, and are applied directly to the user's data. Simply removing a rule here will not reverse
  494. # the effect of that rule on any users who have already had it applied to them.
  495. #
  496. # The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or'
  497. # characters used in Java.
  498. # e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has
  499. # 'some.other.permission', or 'some.permission.other', and they also have 'some.thing.else'
  500. #
  501. # Groups are represented by the permission node: group.<group name>
  502. # Per server and per world nodes are represented by "server-world/permission" or "server/permission"
  503. #
  504. # Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
  505. #
  506. # Explanation of the examples below: (they're just to demonstrate the features & use cases)
  507. #
  508. # rule1:
  509. # If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission
  510. # set to true, and the "some.random.permission" set to false... if they're not in the group
  511. # "prison_titlepack" on the "prison" server, then give add them to the "prison_titlepack" group on
  512. # the "prison" server, and remove "some.random.permission".
  513. #
  514. # rule2:
  515. # If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2,
  516. # sb_level3, then add them to sb_level1 on the skyblock server.
  517. #
  518. # rule3:
  519. # If the user is a member of the default group, remove them from default, add them to member, and
  520. # set their primary group to member.
  521. #
  522. # WARNING: Unlike internal commands, this system does not ensure that a group exists before adding
  523. # a user to it. It also does not unsure that a user is a member of a group before making that group
  524. # their primary group.
  525. #
  526. # Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and
  527. # that the user is a member of the group.
  528. default-assignments:
  529. # rule1:
  530. # if:
  531. # has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
  532. # has-false: <some.random.permission>
  533. # lacks: <prison/group.prison_titlepack>
  534. # give:
  535. # - prison/group.prison_titlepack
  536. # take:
  537. # - some.random.permission
  538. # rule2:
  539. # if:
  540. # lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
  541. # give:
  542. # - skyblock/group.sb_level1
  543. # rule3:
  544. # if:
  545. # has-true: <group.default>
  546. # take:
  547. # - group.default
  548. # give:
  549. # - group.member
  550. # set-primary-group: member
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement