Advertisement
Guest User

Untitled

a guest
Mar 12th, 2018
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.79 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 the servers own UUID cache/lookup facility should be used when there is no record for a player
  42. # in the LuckPerms cache.
  43. #
  44. # Since BungeeCord doesn't maintain it's own UUID cache, when this option is true, LuckPerms will
  45. # try to find a uuid for a username using RedisBungee, if installed.
  46. use-server-uuid-cache: false
  47.  
  48. # If set to true, LuckPerms will allow usernames with non alphanumeric characters.
  49. #
  50. # Note that due to the design of the storage implementation, usernames must still be
  51. # 16 characters or less.
  52. allow-invalid-usernames: false
  53.  
  54. # If LuckPerms should produce extra logging output when it handles logins.
  55. # Useful if you're having issues with UUID forwarding or data not being loaded.
  56. debug-logins: false
  57.  
  58. # If LuckPerms should ensure all players have permission data when they connect to the server.
  59. #
  60. # When set to true, LuckPerms will cancel login attempts if it is unable to load permissions data
  61. # for a user, of if the storage provider is unavailable.
  62. #
  63. # When set to false, LuckPerms will allow a player to connect regardless of whether their
  64. # permissions data could be loaded.
  65. #
  66. # This option does not exist on other platforms, and effectively defaults to true - however,
  67. # the option is provided on BungeeCord, as it is less likely to be so dependant on permissions.
  68. cancel-failed-logins: false
  69.  
  70. # If the plugin should send log notifications to users whenever permissions are modified.
  71. log-notify: true
  72.  
  73. # Mirrors world names. Whenever LuckPerms checks what world a user is in, if the world name is in
  74. # this list, the value assigned will be sent forward for permission calculation instead.
  75. world-rewrite:
  76. # world_nether: world
  77. # world_the_end: world
  78.  
  79. # Controls how temporary permissions/parents/meta should be accumulated
  80. #
  81. # The default behaviour is "deny"
  82. # If "accumulate": durations will be added to the existing expiry time
  83. # If "replace": durations will be replaced if the new duration is later than the current expiration
  84. # If "deny": the command will just fail if you try to add another node with the same expiry
  85. temporary-add-behaviour: deny
  86.  
  87. # How should LuckPerms determine a users "primary" group.
  88. #
  89. # Available Options:
  90. # -> stored use the value stored against the users record in the file/database
  91. # -> parents-by-weight just use the users most highly weighted parent
  92. # -> all-parents-by-weight same as above, but calculates based upon all parents inherited from both
  93. # directly and indirectly
  94. primary-group-calculation: parents-by-weight
  95.  
  96. # If set to false, the plugin will allow a Users primary group to be removed with the
  97. # 'parent remove' command, and will set their primary group back to default.
  98. prevent-primary-group-removal: false
  99.  
  100. # If the plugin should check for "extra" permissions with users run LP commands.
  101. #
  102. # These extra permissions allow finer control over what users can do with each command, and
  103. # who they have access to edit.
  104. #
  105. # The permissions are *not* static, unlike the 'base' permisssions, and will depend upon the
  106. # arguments given within the command.
  107. argument-based-command-permissions: false
  108.  
  109.  
  110.  
  111.  
  112. # +----------------------------------------------------------------------------------------------+ #
  113. # | Permission Calculation | #
  114. # +----------------------------------------------------------------------------------------------+ #
  115.  
  116. # If the plugin should apply wildcard permissions.
  117. # If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered
  118. # permissions matching the wildcard.
  119. apply-wildcards: true
  120.  
  121. # If the plugin should parse regex permissions.
  122. # If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the
  123. # node, and resolve & apply all registered permissions matching the regex.
  124. apply-regex: true
  125.  
  126. # If the plugin should complete and apply shorthand permissions.
  127. # If set to true, LuckPerms will detect and expand shorthand node patterns.
  128. apply-shorthand: true
  129.  
  130. # If the plugin should apply the permissions & groups defined in the BungeeCord config.yml
  131. # If set to false, LuckPerms will ignore these values.
  132. apply-bungee-config-permissions: false
  133.  
  134. # The algorithm LuckPerms should use when traversing the "inheritance tree".
  135. #
  136. # The valid options are:
  137. # - breadth-first
  138. # - depth-first-pre-order
  139. # - depth-first-post-order
  140. #
  141. # See here for information about the differences between each algorithm.
  142. # - https://en.wikipedia.org/wiki/Breadth-first_search
  143. # - https://en.wikipedia.org/wiki/Depth-first_search
  144. inheritance-traversal-algorithm: depth-first-pre-order
  145.  
  146. # Define special group weights for this server.
  147. # Default is just 0.
  148. group-weight:
  149. # admin: 10
  150.  
  151.  
  152.  
  153.  
  154. # +----------------------------------------------------------------------------------------------+ #
  155. # | Meta Formatting & Stacking | #
  156. # +----------------------------------------------------------------------------------------------+ #
  157.  
  158. # Allows you to setup prefix/suffix stacking options.
  159. #
  160. # Available formats:
  161. # - highest
  162. # - lowest
  163. # - highest_own
  164. # - lowest_own
  165. # - highest_inherited
  166. # - lowest_inherited
  167. # - highest_on_track_<track>
  168. # - lowest_on_track_<track>
  169. # - highest_not_on_track_<track>
  170. # - lowest_not_on_track_<track>
  171. #
  172. # Each element is added in the order listed.
  173. meta-formatting:
  174. prefix:
  175. format:
  176. - "highest"
  177. start-spacer: ""
  178. middle-spacer: " "
  179. end-spacer: ""
  180. suffix:
  181. format:
  182. - "highest"
  183. start-spacer: ""
  184. middle-spacer: " "
  185. end-spacer: ""
  186.  
  187.  
  188.  
  189.  
  190. # +----------------------------------------------------------------------------------------------+ #
  191. # | Storage | #
  192. # +----------------------------------------------------------------------------------------------+ #
  193.  
  194. # Which storage method the plugin should use.
  195. #
  196. # See: https://github.com/lucko/LuckPerms/wiki/Choosing-a-Storage-type
  197. # Currently supported: mysql, mariadb, postgresql, sqlite, h2, json, yaml, hocon, mongodb
  198. #
  199. # Fill out connection info below if you're using MySQL, MariaDB, PostgreSQL or MongoDB
  200. # If your MySQL server supports it, the "mariadb" option is preferred over "mysql".
  201. storage-method: h2
  202.  
  203. # When using a file-based storage type, LuckPerms can monitor the data files for changes, and then
  204. # schedule automatic updates when changes are detected.
  205. #
  206. # If you don't want this to happen, set this option to false.
  207. watch-files: true
  208.  
  209. # This block enables support for split datastores.
  210. split-storage:
  211. enabled: false
  212. methods:
  213. user: h2
  214. group: h2
  215. track: h2
  216. uuid: h2
  217. log: h2
  218.  
  219. data:
  220. # Uses standard DB engine port by default
  221. # MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017
  222. # Specify as "host:port" if differs
  223. address: 0.0.0.0
  224. database: private
  225. username: private
  226. password: private
  227.  
  228. # These settings apply to the MySQL connection pool.
  229. # The default values will be suitable for the majority of users.
  230. # Do not change these settings unless you know what you're doing!
  231. pool-settings:
  232.  
  233. # Sets the maximum size of the MySQL connection pool.
  234. # Basically this value will determine the maximum number of actual
  235. # connections to the database backend.
  236. #
  237. # More information about determining the size of connection pools can be found here:
  238. # https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
  239. maximum-pool-size: 10
  240.  
  241. # Sets the minimum number of idle connections that the pool will try to maintain.
  242. #
  243. # For maximum performance and responsiveness to spike demands, it is recommended to not set
  244. # this value and instead allow the pool to act as a fixed size connection pool.
  245. # (set this value to the same as 'maximum-pool-size')
  246. minimum-idle: 10
  247.  
  248. # This setting controls the maximum lifetime of a connection in the pool in milliseconds.
  249. # The value should be at least 30 seconds less than any database or infrastructure imposed
  250. # connection time limit.
  251. maximum-lifetime: 1800000 # 30 minutes
  252.  
  253. # This setting controls the maximum number of milliseconds that the plugin will wait for a
  254. # connection from the pool, before timing out.
  255. connection-timeout: 5000 # 5 seconds
  256.  
  257. # This setting allows you to define extra properties for connections.
  258. properties:
  259. useUnicode: true
  260. characterEncoding: utf8
  261.  
  262. # The prefix for all LuckPerms tables. Change this is you want to use different tables for
  263. # different servers.
  264. #
  265. # This should *not* be set to "lp_" if you have previously ran LuckPerms v2.16.81 or earlier with
  266. # this database.
  267. table_prefix: 'luckperms_'
  268.  
  269. # The prefix to use for all LuckPerms collections. Change this if you want to use different
  270. # collections for different servers. The default is no prefix.
  271. mongodb_collection_prefix: ''
  272.  
  273. # MongoDB ClientConnectionURI for use with replicasets and custom connection options
  274. # See https://docs.mongodb.com/manual/reference/connection-string/
  275. mongodb_connection_URI: ''
  276.  
  277. # This option controls how frequently LuckPerms will perform a sync task.
  278. # A sync task will refresh all data from the storage, and ensure that the most up-to-date data is
  279. # being used by the plugin.
  280. #
  281. # This is disabled by default, as most users will not need it. However, if you're using a remote
  282. # storage type without a messaging service setup, you may wish to set this value to something like
  283. # 3.
  284. #
  285. # Set to -1 to disable the task completely.
  286. sync-minutes: -1
  287.  
  288. # Settings for the messaging service
  289. #
  290. # If enabled and configured, LuckPerms will use the messaging system to inform other
  291. # connected servers of changes. Use the command "/luckpermsbungee networksync" to push changes.
  292. # Data is NOT stored using this service. It is only used as a messaging platform.
  293. #
  294. # If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need for
  295. # LuckPerms to poll the database for changes.
  296. #
  297. # Available options:
  298. # -> bungee uses the plugin messaging channels. Must be enabled on all connected servers to
  299. # work.
  300. # -> redis uses redis pub sub to push changes. Your redis server must be configured below.
  301. # -> redisbungee uses redis pub sub to push changes, using RedisBungee's API. You need to have the
  302. # RedisBungee plugin installed.
  303. # -> none nothing
  304. messaging-service: bungee
  305. # If LuckPerms should automatically push updates after a change has been made with a command.
  306. auto-push-updates: true
  307.  
  308. # If LuckPerms should push logging entries to connected servers via the messaging service.
  309. push-log-entries: true
  310.  
  311. # If LuckPerms should broadcast received logging entries to players on this platform.
  312. #
  313. # If you have LuckPerms installed on your backend servers as well as a BungeeCord proxy, you should
  314. # set this option to false on either your backends or your proxies, to avoid players being messaged
  315. # twice about log entries.
  316. broadcast-received-log-entries: false
  317.  
  318. # Settings for Redis.
  319. # Port 6379 is used by default; set address to "host:port" if differs
  320. redis:
  321. enabled: false
  322. address: localhost
  323. password: ''
  324.  
  325.  
  326.  
  327.  
  328. # +----------------------------------------------------------------------------------------------+ #
  329. # | Default Assignments | #
  330. # +----------------------------------------------------------------------------------------------+ #
  331.  
  332. # This section allows you to define defaults to give users whenever they connect to the server.
  333. # The default assignments are highly configurable and conditional.
  334. #
  335. # There is one default assignment built into LuckPerms, which will add all users to the "default"
  336. # group if they are not a member of any other group. This setting cannot be disabled. However, you
  337. # can use this section to add more of your own.
  338. #
  339. # IMPORTANT:
  340. # In order to save storage space, LuckPerms does not store users who have no permissions defined,
  341. # and are only a member of the default group. Adding default assignments to this section will negate
  342. # this effect. It is HIGHLY RECCOMENDED that instead of assigning defaults here, you add permissions
  343. # to the "default" group, or set the "default" group to inherit other groups, and then use the
  344. # group-name-rewrite rule above.
  345. #
  346. # It is also important to note that these rules are considered every time a player logs into the
  347. # server, and are applied directly to the user's data. Simply removing a rule here will not reverse
  348. # the effect of that rule on any users who have already had it applied to them.
  349. #
  350. # The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or'
  351. # characters used in Java.
  352. # e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has
  353. # 'some.other.permission', or 'some.permission.other', and they also have 'some.thing.else'
  354. #
  355. # Groups are represented by the permission node: group.<group name>
  356. # Per server and per world nodes are represented by "server-world/permission" or "server/permission"
  357. #
  358. # Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
  359. #
  360. # Explanation of the examples below: (they're just to demonstrate the features & use cases)
  361. #
  362. # rule1:
  363. # If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission
  364. # set to true, and the "some.random.permission" set to false... if they're not in the group
  365. # "prison_titlepack" on the "prison" server, then give add them to the "prison_titlepack" group on
  366. # the "prison" server, and remove "some.random.permission".
  367. #
  368. # rule2:
  369. # If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2,
  370. # sb_level3, then add them to sb_level1 on the skyblock server.
  371. #
  372. # rule3:
  373. # If the user is a member of the default group, remove them from default, add them to member, and
  374. # set their primary group to member.
  375. #
  376. # WARNING: Unlike internal commands, this system does not ensure that a group exists before adding
  377. # a user to it. It also does not unsure that a user is a member of a group before making that group
  378. # their primary group.
  379. #
  380. # Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and
  381. # that the user is a member of the group.
  382. default-assignments:
  383. # rule1:
  384. # if:
  385. # has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
  386. # has-false: <some.random.permission>
  387. # lacks: <prison/group.prison_titlepack>
  388. # give:
  389. # - prison/group.prison_titlepack
  390. # take:
  391. # - some.random.permission
  392. # rule2:
  393. # if:
  394. # lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
  395. # give:
  396. # - skyblock/group.sb_level1
  397. # rule3:
  398. # if:
  399. # has-true: <group.default>
  400. # take:
  401. # - group.default
  402. # give:
  403. # - group.member
  404. # set-primary-group: member
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement