Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 15.62 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. # |                                            General                                           | #
  22. # +----------------------------------------------------------------------------------------------+ #
  23.  
  24. # The name of the server, used for server specific permissions. Set to 'global' to disable.
  25. server: global
  26.  
  27. # If users on this server should have their global permissions applied.
  28. # If set to false, only server specific permissions will apply for users on this server
  29. include-global: true
  30.  
  31. # If users on this server should have their global world permissions applied.
  32. # If set to false, only world specific permissions will apply for users on this server
  33. include-global-world: true
  34.  
  35. # If users on this server should have global (non-server specific) groups applied
  36. apply-global-groups: true
  37.  
  38. # If users on this server should have global (non-world specific) groups applied
  39. apply-global-world-groups: true
  40.  
  41. # If UUIDs should be pulled from the server, or looked up by username based upon previous
  42. # connections.
  43. #
  44. # This option should be set to true in most cases. When set to false, in order to get a player's
  45. # UUID, LuckPerms will:
  46. #
  47. # 1. Check if a player with the given username has joined before, if they have, use the UUID they
  48. #    used on their previous login.
  49. # 2. Save and return the players "current" uuid.
  50. #
  51. # For offline mode (cracked) servers, a players UUID is generated based upon their username.
  52. #
  53. # IMPORTANT:
  54. # If you are using BungeeCord proxy running in online mode, it is important that "online-mode=false"
  55. # is set in server.properties, but "bungeecord: true" is set in the spigot.yml. You also need to set
  56. # "ip_forward: true" in BungeeCord's config.yml.
  57. #
  58. # If for whatever reason you are not able to do this, and do not have ip-forward enabled, then you
  59. # may need to set "use-server-uuids" to false.
  60. #
  61. # If your proxy is running in offline mode, you should still be setting up ip-forwarding as
  62. # described above, but may also find that you need to set "bungee-online-mode" to false in
  63. # paper.yml, if you are using Paper. (https://ci.destroystokyo.com/job/PaperSpigot/)
  64. #
  65. # This option only really exists for networks who for whatever reason cannot setup proper ip
  66. # forwarding.
  67. use-server-uuids: true
  68.  
  69. # If the servers own UUID cache/lookup facility should be used when there is no record for a player
  70. # in the LuckPerms cache.
  71. #
  72. # Since BungeeCord doesn't maintain it's own UUID cache, when this option is true, LuckPerms will
  73. # try to find a uuid for a username using RedisBungee, if installed.
  74. use-server-uuid-cache: false
  75.  
  76. # If the plugin should send log notifications to users whenever permissions are modified.
  77. log-notify: true
  78.  
  79. # Mirrors world names. Whenever LuckPerms checks what world a user is in, if the world name is in
  80. # this list, the value assigned will be sent forward for permission calculation instead.
  81. world-rewrite:
  82. #  world_nether: world
  83. #  world_the_end: world
  84.  
  85. # Rewrites group names. The underlying name of the group does not change, just the output in
  86. # commands / placeholders / Vault.
  87. group-name-rewrite:
  88.   default: Recruits
  89.   member: Member
  90.   moderator: Moderator
  91.   admin: Admin
  92.   owner: Owner
  93.   god: God
  94.  
  95. # Controls how temporary permissions/parents/meta should be accumulated
  96. #
  97. # The default behaviour is "deny"
  98. # If "accumulate": durations will be added to the existing expiry time
  99. # If "replace": durations will be replaced if the new duration is later than the current expiration
  100. # If "deny": the command will just fail if you try to add another node with the same expiry
  101. temporary-add-behaviour: deny
  102.  
  103. # How should LuckPerms determine a users "primary" group.
  104. #
  105. # Available Options:
  106. # -> stored                 use the value stored against the users record in the file/database
  107. # -> parents-by-weight      just use the users most highly weighted parent
  108. # -> all-parents-by-weight  same as above, but calculates based upon all parents inherited from both
  109. #                           directly and indirectly
  110. primary-group-calculation: stored
  111.  
  112. # If the plugin should check for "extra" permissions with users run LP commands.
  113. #
  114. # These extra permissions allow finer control over what users can do with each command, and
  115. # who they have access to edit.
  116. #
  117. # The permissions are *not* static, unlike the 'base' permisssions, and will depend upon the
  118. # arguments given within the command.
  119. argument-based-command-permissions: false
  120.  
  121.  
  122.  
  123.  
  124. # +----------------------------------------------------------------------------------------------+ #
  125. # |                                    Permission Calculation                                    | #
  126. # +----------------------------------------------------------------------------------------------+ #
  127.  
  128. # If the plugin should apply wildcard permissions.
  129. # If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered
  130. # permissions matching the wildcard.
  131. apply-wildcards: true
  132.  
  133. # If the plugin should parse regex permissions.
  134. # If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the
  135. # node, and resolve & apply all registered permissions matching the regex.
  136. apply-regex: true
  137.  
  138. # If the plugin should complete and apply shorthand permissions.
  139. # If set to true, LuckPerms will detect and expand shorthand node patterns.
  140. apply-shorthand: true
  141.  
  142. # If the plugin should apply the permissions & groups defined in the BungeeCord config.yml
  143. # If set to false, LuckPerms will ignore these values.
  144. apply-bungee-config-permissions: false
  145.  
  146. # Define special group weights for this server.
  147. # Default is just 0.
  148. group-weight:
  149.   member: 5
  150.   moderator: 10
  151.   admin: 15
  152.   owner: 45
  153.   god: 50
  154.  
  155.  
  156.  
  157.  
  158.  
  159. # +----------------------------------------------------------------------------------------------+ #
  160. # |                                  Meta Formatting & Stacking                                  | #
  161. # +----------------------------------------------------------------------------------------------+ #
  162.  
  163. # Allows you to setup prefix/suffix stacking options.
  164. #
  165. # Available formats:
  166. # - highest
  167. # - lowest
  168. # - highest_own
  169. # - lowest_own
  170. # - highest_on_track_<track>
  171. # - lowest_on_track_<track>
  172. # - highest_not_on_track_<track>
  173. # - lowest_not_on_track_<track>
  174. #
  175. # Each element is added in the order listed.
  176. meta-formatting:
  177.   prefix:
  178.     format:
  179.      - "highest"
  180.     start-spacer: ""
  181.     middle-spacer: " "
  182.     end-spacer: ""
  183.   suffix:
  184.     format:
  185.      - "highest"
  186.     start-spacer: ""
  187.     middle-spacer: " "
  188.     end-spacer: ""
  189.  
  190.  
  191.  
  192.  
  193. # +----------------------------------------------------------------------------------------------+ #
  194. # |                                            Storage                                           | #
  195. # +----------------------------------------------------------------------------------------------+ #
  196.  
  197. # Which storage method the plugin should use.
  198. #
  199. # See: https://github.com/lucko/LuckPerms/wiki/Choosing-a-Storage-type
  200. # Currently supported: mysql, mariadb, postgresql, sqlite, h2, json, yaml, mongodb
  201. #
  202. # Fill out connection info below if you're using MySQL, MariaDB, PostgreSQL or MongoDB
  203. # If your MySQL server supports it, the "mariadb" option is preferred over "mysql".
  204. storage-method: mariadb
  205.  
  206. # When using a file-based storage type, LuckPerms can monitor the data files for changes, and then
  207. # schedule automatic updates when changes are detected.
  208. #
  209. # If you don't want this to happen, set this option to false.
  210. watch-files: true
  211.  
  212. # This block enables support for split datastores.
  213. split-storage:
  214.   enabled: false
  215.   methods:
  216.     user: h2
  217.     group: h2
  218.     track: h2
  219.     uuid: h2
  220.     log: h2
  221.  
  222. data:
  223.  # Uses standard DB engine port by default
  224.   # MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017
  225.   # Specify as "host:port" if differs
  226.   address: xxxx.com:3306
  227.  
  228.   database: 5
  229.   username: 5
  230.   password: 'xxxx'
  231.   pool-size: 10 # The size of the MySQL connection pool.
  232.  
  233.   # The prefix for all LuckPerms tables. Change this is you want to use different tables for
  234.   # different servers.
  235.   #
  236.   # This should *not* be set to "lp_" if you have previously ran LuckPerms v2.16.81 or earlier with
  237.   # this database.
  238.   table_prefix: 'luckperms_'
  239.  
  240.   # The prefix to use for all LuckPerms collections. Change this if you want to use different
  241.   # collections for different servers. The default is no prefix.
  242.   mongodb_collection_prefix: ''
  243.  
  244.   # This option controls how frequently LuckPerms will perform a sync task.
  245.   # A sync task will refresh all data from the storage, and ensure that the most up-to-date data is
  246.   # being used by the plugin.
  247.   #
  248.   # This is disabled by default, as most users will not need it. However, if you're using a remote
  249.   # storage type without a messaging service setup, you may wish to set this value to something like
  250.   # 3.
  251.   #
  252.   # Set to -1 to disable the task completely.
  253.   sync-minutes: -1
  254.  
  255. # Settings for the messaging service
  256. #
  257. # If enabled and configured, LuckPerms will use the messaging system to inform other
  258. # connected servers of changes. Use the command "/luckpermsbungee networksync" to push changes.
  259. # Data is NOT stored using this service. It is only used as a messaging platform.
  260. #
  261. # If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need for
  262. # LuckPerms to poll the database for changes.
  263. #
  264. # Available options:
  265. # -> bungee      uses the plugin messaging channels. Must be enabled on all connected servers to
  266. #                work.
  267. # -> redis       uses redis pub sub to push changes. Your redis server must be configured below.
  268. # -> redisbungee uses redis pub sub to push changes, using RedisBungee's API. You need to have the
  269. #                RedisBungee plugin installed.
  270. # -> none        nothing
  271. messaging-service: bungee
  272.  
  273. # If LuckPerms should automatically push updates after a change has been made with a command.
  274. auto-push-updates: true
  275.  
  276. # Settings for Redis.
  277. # Port 6379 is used by default; set address to "host:port" if differs
  278. redis:
  279.   enabled: false
  280.   address: localhost
  281.   password: ''
  282.  
  283.  
  284.  
  285.  
  286. # +----------------------------------------------------------------------------------------------+ #
  287. # |                                      Default Assignments                                     | #
  288. # +----------------------------------------------------------------------------------------------+ #
  289.  
  290. # This section allows you to define defaults to give users whenever they connect to the server.
  291. # The default assignments are highly configurable and conditional.
  292. #
  293. # There is one default assignment built into LuckPerms, which will add all users to the "default"
  294. # group if they are not a member of any other group. This setting cannot be disabled. However, you
  295. # can use this section to add more of your own.
  296. #
  297. # IMPORTANT:
  298. # In order to save storage space, LuckPerms does not store users who have no permissions defined,
  299. # and are only a member of the default group. Adding default assignments to this section will negate
  300. # this effect. It is HIGHLY RECCOMENDED that instead of assigning defaults here, you add permissions
  301. # to the "default" group, or set the "default" group to inherit other groups, and then use the
  302. # group-name-rewrite rule above.
  303. #
  304. # It is also important to note that these rules are considered every time a player logs into the
  305. # server, and are applied directly to the user's data. Simply removing a rule here will not reverse
  306. # the effect of that rule on any users who have already had it applied to them.
  307. #
  308. # The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or'
  309. # characters used in Java.
  310. # e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has
  311. # 'some.other.permission', or 'some.permission.other', and they also have 'some.thing.else'
  312. #
  313. # Groups are represented by the permission node: group.<group name>
  314. # Per server and per world nodes are represented by "server-world/permission" or "server/permission"
  315. #
  316. # Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
  317. #
  318. # Explanation of the examples below: (they're just to demonstrate the features & use cases)
  319. #
  320. # rule1:
  321. # If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission
  322. # set to true, and the "some.random.permission" set to false... if they're not in the group
  323. # "prison_titlepack" on the "prison" server, then give add them to the "prison_titlepack" group on
  324. # the "prison" server, and remove "some.random.permission".
  325. #
  326. # rule2:
  327. # If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2,
  328. # sb_level3, then add them to sb_level1 on the skyblock server.
  329. #
  330. # rule3:
  331. # If the user is a member of the default group, remove them from default, add them to member, and
  332. # set their primary group to member.
  333. #
  334. # WARNING: Unlike internal commands, this system does not ensure that a group exists before adding
  335. # a user to it. It also does not unsure that a user is a member of a group before making that group
  336. # their primary group.
  337. #
  338. # Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and
  339. # that the user is a member of the group.
  340. default-assignments:
  341. #  rule1:
  342. #    if:
  343. #      has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
  344. #      has-false: <some.random.permission>
  345. #      lacks: <prison/group.prison_titlepack>
  346. #    give:
  347. #      - prison/group.prison_titlepack
  348. #    take:
  349. #      - some.random.permission
  350. #  rule2:
  351. #    if:
  352. #      lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
  353. #    give:
  354. #      - skyblock/group.sb_level1
  355. #  rule3:
  356. #    if:
  357. #      has-true: <group.default>
  358. #    take:
  359. #      - group.default
  360. #    give:
  361. #      - group.member
  362. #    set-primary-group: member
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement