Advertisement
Guest User

Untitled

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