Advertisement
Guest User

Untitled

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