Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 27.32 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: mysql
  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: lp
  102.   password: 'secret'
  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. #   => bungee        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 send log notifications to users whenever permissions are modified.
  293. #
  294. # - Notifications are only sent to those with the appropriate permission to receive them
  295. # - They can also be temporarily enabled/disabled on a per-user basis using
  296. #   '/lp log notify <on|off>'
  297. log-notify: true
  298.  
  299. # Defines the options for prefix and suffix stacking.
  300. #
  301. # - The feature allows you to display multiple prefixes or suffixes alongside a players username in
  302. #   chat.
  303. # - It is explained and documented in more detail on the wiki under "Prefix & Suffix Stacking".
  304. #
  305. # - The options are divided into separate sections for prefixes and suffixes.
  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.     start-spacer: ""
  340.     middle-spacer: " "
  341.     end-spacer: ""
  342.   suffix:
  343.     format:
  344.       - "highest"
  345.     start-spacer: ""
  346.     middle-spacer: " "
  347.     end-spacer: ""
  348.  
  349.  
  350.  
  351.  
  352. # +----------------------------------------------------------------------------------------------+ #
  353. # |                                                                                              | #
  354. # |                            PERMISSION CALCULATION AND INHERITANCE                            | #
  355. # |                                                                                              | #
  356. # |    Modify the way permission checks, meta lookups and inheritance resolutions are handled.   | #
  357. # |                                                                                              | #
  358. # +----------------------------------------------------------------------------------------------+ #
  359.  
  360. # The algorithm LuckPerms should use when traversing the "inheritance tree".
  361. #
  362. # - Possible options:
  363. #   => breadth-first            See: https://en.wikipedia.org/wiki/Breadth-first_search
  364. #   => depth-first-pre-order    See: https://en.wikipedia.org/wiki/Depth-first_search
  365. #   => depth-first-post-order   See: https://en.wikipedia.org/wiki/Depth-first_search
  366. inheritance-traversal-algorithm: depth-first-pre-order
  367.  
  368. # +----------------------------------------------------------------------------------------------+ #
  369. # | Permission resolution settings                                                               | #
  370. # +----------------------------------------------------------------------------------------------+ #
  371.  
  372. # If users on this server should have their global permissions applied.
  373. # When set to false, only server specific permissions will apply for users on this server
  374. include-global: true
  375.  
  376. # If users on this server should have their global world permissions applied.
  377. # When set to false, only world specific permissions will apply for users on this server
  378. include-global-world: true
  379.  
  380. # If users on this server should have global (non-server specific) groups applied
  381. apply-global-groups: true
  382.  
  383. # If users on this server should have global (non-world specific) groups applied
  384. apply-global-world-groups: true
  385.  
  386. # +----------------------------------------------------------------------------------------------+ #
  387. # | Inheritance settings                                                                         | #
  388. # +----------------------------------------------------------------------------------------------+ #
  389.  
  390. # If the plugin should apply wildcard permissions.
  391. #
  392. # - If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered
  393. #   permissions matching the wildcard.
  394. apply-wildcards: true
  395.  
  396. # If the plugin should parse regex permissions.
  397. #
  398. # - If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the
  399. #   node, and resolve & apply all registered permissions matching the regex.
  400. apply-regex: true
  401.  
  402. # If the plugin should complete and apply shorthand permissions.
  403. #
  404. # - If set to true, LuckPerms will detect and expand shorthand node patterns.
  405. apply-shorthand: true
  406.  
  407. # If the plugin should apply the permissions & groups defined in the BungeeCord config.yml
  408. #
  409. # - If set to false, LuckPerms will ignore these values.
  410. apply-bungee-config-permissions: false
  411.  
  412. # +----------------------------------------------------------------------------------------------+ #
  413. # | Extra settings                                                                               | #
  414. # +----------------------------------------------------------------------------------------------+ #
  415.  
  416. # Allows you to set "aliases" for the worlds sent forward for context calculation.
  417. #
  418. # - These aliases are provided in addition to the real world name. Applied recursively.
  419. # - Remove the comment characters for the default aliases to apply.
  420. world-rewrite:
  421. #  world_nether: world
  422. #  world_the_end: world
  423.  
  424. # Define special group weights for this server.
  425. #
  426. # - Group weights can also be applied directly to group data, using the setweight command.
  427. # - This section allows weights to be set on a per-server basis.
  428. group-weight:
  429. #  admin: 10
  430.  
  431.  
  432.  
  433.  
  434. # +----------------------------------------------------------------------------------------------+ #
  435. # |                                                                                              | #
  436. # |                                      FINE TUNING OPTIONS                                     | #
  437. # |                                                                                              | #
  438. # |     A number of more niche settings for tweaking and changing behaviour. The section also    | #
  439. # | contains toggles for some more specialised features. It is only necessary to make changes to | #
  440. # |                  these options if you want to fine-tune LuckPerms behaviour.                 | #
  441. # |                                                                                              | #
  442. # +----------------------------------------------------------------------------------------------+ #
  443.  
  444. # +----------------------------------------------------------------------------------------------+ #
  445. # | Miscellaneous (and rarely used) settings                                                     | #
  446. # +----------------------------------------------------------------------------------------------+ #
  447.  
  448. # If LuckPerms should produce extra logging output when it handles logins.
  449. #
  450. # - Useful if you're having issues with UUID forwarding or data not being loaded.
  451. debug-logins: false
  452.  
  453. # If LuckPerms should allow usernames with non alphanumeric characters.
  454. #
  455. # - Note that due to the design of the storage implementation, usernames must still be 16 characters
  456. #   or less.
  457. allow-invalid-usernames: false
  458.  
  459. # If LuckPerms should allow a users primary group to be removed with the 'parent remove' command.
  460. #
  461. # - When this happens, the plugin will set their primary group back to default.
  462. prevent-primary-group-removal: false
  463.  
  464.  
  465.  
  466.  
  467. # +----------------------------------------------------------------------------------------------+ #
  468. # |                                                                                              | #
  469. # |                                      DEFAULT ASSIGNMENTS                                     | #
  470. # |                                                                                              | #
  471. # +----------------------------------------------------------------------------------------------+ #
  472.  
  473. # This section allows you to define defaults to give users whenever they connect to the server.
  474. # The default assignments are highly configurable and conditional.
  475. #
  476. # There is one default assignment built into LuckPerms, which will add all users to the "default"
  477. # group if they are not a member of any other group. This setting cannot be disabled. However, you
  478. # can use this section to add more of your own.
  479. #
  480. # IMPORTANT:
  481. # In order to save storage space, LuckPerms does not store users who have no permissions defined,
  482. # and are only a member of the default group. Adding default assignments to this section will negate
  483. # this effect. It is HIGHLY RECCOMENDED that instead of assigning defaults here, you add permissions
  484. # to the "default" group, or set the "default" group to inherit other groups, and then use the
  485. # group-name-rewrite rule above.
  486. #
  487. # It is also important to note that these rules are considered every time a player logs into the
  488. # server, and are applied directly to the user's data. Simply removing a rule here will not reverse
  489. # the effect of that rule on any users who have already had it applied to them.
  490. #
  491. # The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or'
  492. # characters used in Java.
  493. # e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has
  494. # 'some.other.permission', or 'some.permission.other', and they also have 'some.thing.else'
  495. #
  496. # Groups are represented by the permission node: group.<group name>
  497. # Per server and per world nodes are represented by "server-world/permission" or "server/permission"
  498. #
  499. # Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
  500. #
  501. # Explanation of the examples below: (they're just to demonstrate the features & use cases)
  502. #
  503. # rule1:
  504. # If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission
  505. # set to true, and the "some.random.permission" set to false... if they're not in the group
  506. # "prison_titlepack" on the "prison" server, then give add them to the "prison_titlepack" group on
  507. # the "prison" server, and remove "some.random.permission".
  508. #
  509. # rule2:
  510. # If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2,
  511. # sb_level3, then add them to sb_level1 on the skyblock server.
  512. #
  513. # rule3:
  514. # If the user is a member of the default group, remove them from default, add them to member, and
  515. # set their primary group to member.
  516. #
  517. # WARNING: Unlike internal commands, this system does not ensure that a group exists before adding
  518. # a user to it. It also does not unsure that a user is a member of a group before making that group
  519. # their primary group.
  520. #
  521. # Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and
  522. # that the user is a member of the group.
  523. default-assignments:
  524. #  rule1:
  525. #    if:
  526. #      has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
  527. #      has-false: <some.random.permission>
  528. #      lacks: <prison/group.prison_titlepack>
  529. #    give:
  530. #      - prison/group.prison_titlepack
  531. #    take:
  532. #      - some.random.permission
  533. #  rule2:
  534. #    if:
  535. #      lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
  536. #    give:
  537. #      - skyblock/group.sb_level1
  538. #  rule3:
  539. #    if:
  540. #      has-true: <group.default>
  541. #    take:
  542. #      - group.default
  543. #    give:
  544. #      - group.member
  545. #    set-primary-group: member
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement