Advertisement
Guest User

for merjilin

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