Advertisement
Guest User

Untitled

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