Advertisement
Guest User

Config-Prison

a guest
Apr 27th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.70 KB | None | 0 0
  1. ##############################################################################
  2. # +------------------------------------------------------------------------+ #
  3. # | LuckPerms Configuration | #
  4. # | https://github.com/lucko/LuckPerms | #
  5. # +------------------------------------------------------------------------+ #
  6. ##############################################################################
  7.  
  8. # +------------------------------------------------------------------------+ #
  9. # | General | #
  10. # +------------------------------------------------------------------------+ #
  11.  
  12. # The name of the server, used for server specific permissions. Set to 'global' to disable.
  13. server: prison
  14.  
  15. # If users on this server should have their global permissions applied.
  16. # If set to false, only server specific permissions will apply for users on this server
  17. include-global: true
  18.  
  19. # If users on this server should have their global world permissions applied.
  20. # If set to false, only world specific permissions will apply for users on this server
  21. include-global-world: true
  22.  
  23. # If users on this server should have global (non-server specific) groups applied
  24. apply-global-groups: true
  25.  
  26. # If users on this server should have global (non-world specific) groups applied
  27. apply-global-world-groups: true
  28.  
  29. # If this server is in offline or online mode.
  30. # This setting allows a player to have the same UUID across a network of offline mode/mixed servers.
  31. #
  32. # You should generally reflect the setting in server.properties here. Except when...
  33. #
  34. # 1. You have Spigot servers connected to a BungeeCord proxy, with online-mode set to false, but 'bungeecord' set to true in the spigot.yml
  35. # AND 'ip-forward' set to true in the BungeeCord config.yml
  36. # In this case, set online-mode in LuckPerms to true, despite the server being in offline mode.
  37. #
  38. # 2. You are only running one server instance using LuckPerms, (not a network)
  39. # In this case, set online-mode to true no matter what is set in server.properties. (we can just fallback to the servers uuid cache)
  40. #
  41. # 3. If your proxy is running in offline mode, and you are using PaperSpigot (https://ci.destroystokyo.com/job/PaperSpigot/),
  42. # you should set "bungee-online-mode" to false in the paper.yml, and set "online-mode" to true in all LuckPerms configs.
  43. # This approach is thoroughly recommended for offline mode networks.
  44. online-mode: true
  45.  
  46. # If the plugin should send log notifications to users whenever permissions are modified.
  47. log-notify: false
  48.  
  49. # Controls how temporary permissions/parents/meta should be accumulated
  50. #
  51. # The default behaviour is "deny"
  52. # If "accumulate": durations will be added to the existing expiry time
  53. # If "replace": durations will be replaced if the new duration is later than the current expiration
  54. # If "deny": the command will just fail if you try to add another node with the same expiry
  55. temporary-add-behaviour: replace
  56.  
  57.  
  58.  
  59.  
  60. # +------------------------------------------------------------------------+ #
  61. # | Permission Calculation | #
  62. # +------------------------------------------------------------------------+ #
  63.  
  64. # If the plugin should apply wildcard permissions.
  65. # If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered permissions matching
  66. # the wildcard.
  67. apply-wildcards: true
  68.  
  69. # If the plugin should parse regex permissions.
  70. # If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the node, and resolve &
  71. # apply all registered permissions matching the regex.
  72. apply-regex: true
  73.  
  74. # If the plugin should complete and apply shorthand permissions.
  75. # If set to true, LuckPerms will detect and expand shorthand node patterns.
  76. apply-shorthand: true
  77.  
  78. # Define special group weights for this server.
  79. # Default is just 0.
  80. group-weight:
  81. # admin: 10
  82.  
  83.  
  84.  
  85.  
  86. # +------------------------------------------------------------------------+ #
  87. # | Meta Formatting & Stacking | #
  88. # +------------------------------------------------------------------------+ #
  89.  
  90. # Allows you to setup prefix/suffix stacking options.
  91. #
  92. # Available formats:
  93. # - highest
  94. # - lowest
  95. # - highest_own
  96. # - lowest_own
  97. # - highest_on_track_<track>
  98. # - lowest_on_track_<track>
  99. #
  100. # Each element is added in the order listed.
  101. meta-formatting:
  102. prefix:
  103. format:
  104. - "highest"
  105. start-spacer: ""
  106. middle-spacer: " "
  107. end-spacer: ""
  108. suffix:
  109. format:
  110. - "highest"
  111. start-spacer: ""
  112. middle-spacer: " "
  113. end-spacer: ""
  114.  
  115.  
  116.  
  117.  
  118. # +------------------------------------------------------------------------+ #
  119. # | OP (Server Operator) Settings | #
  120. # +------------------------------------------------------------------------+ #
  121.  
  122. # If the vanilla OP system is enabled. If set to false, all users will be de-opped, and the op/deop commands will be disabled.
  123. enable-ops: true
  124.  
  125. # If set to true, any user with the permission "luckperms.autoop" will automatically be granted server operator status.
  126. # This permission can be inherited, or set on specific servers/worlds, temporarily, etc.
  127. # Additionally, setting this to true will force the "enable-ops" option above to false. All users will be de-opped unless
  128. # they have the permission node, and the op/deop commands will be disabled.
  129. #
  130. # It is important to note that this setting is only checked when a player first joins the server, and when they switch
  131. # worlds. Therefore, simply removing this permission from a user will not automatically de-op them. A player needs to
  132. # relog to have the change take effect.
  133. #
  134. # It is recommended that you use this option instead of assigning a single '*' permission.
  135. auto-op: false
  136.  
  137. # If opped players should be allowed to use LuckPerms commands. Set to false to only allow users who have the permissions access to the commands
  138. commands-allow-op: true
  139.  
  140.  
  141.  
  142.  
  143. # +------------------------------------------------------------------------+ #
  144. # | Vault | #
  145. # +------------------------------------------------------------------------+ #
  146.  
  147. # The name of the server used within Vault operations. If you don't want Vault operations to be server specific, set this
  148. # to "global".
  149. vault-server: global
  150.  
  151. # If global permissions should be considered when retrieving meta or player groups
  152. vault-include-global: true
  153.  
  154. # If Vault operations should ignore any world arguments if supplied.
  155. vault-ignore-world: false
  156.  
  157. # This block controls the Primary Group override feature
  158. # See the wiki for more information.
  159. vault-primary-groups-overrides:
  160. # If the feature is enabled
  161. enabled: false
  162. # If the check should query the user's inherited permissions.
  163. # (a value of false only checks the permissions they explicitly have)
  164. check-inherited-permissions: false
  165. # If LuckPerms should check if the group exists
  166. check-group-exists: true
  167. # If LuckPerms should check if the user is actually a member of the group
  168. check-user-member-of: true
  169.  
  170. # If LuckPerms should print debugging info to console when a plugin uses a Vault function
  171. vault-debug: false
  172.  
  173. # Mirrors world names. Whenever LuckPerms checks what world a user is in, if the world name is in this list, the value assigned
  174. # will be sent forward for permission calculation instead.
  175. world-rewrite:
  176. # world_nether: world
  177. # world_the_end: world
  178.  
  179. # Rewrites group names. The underlying name of the group does not change, just the output in commands / placeholders / Vault.
  180. group-name-rewrite:
  181. default: Member
  182.  
  183.  
  184.  
  185.  
  186. # +------------------------------------------------------------------------+ #
  187. # | Storage | #
  188. # +------------------------------------------------------------------------+ #
  189.  
  190. # Which storage method the plugin should use.
  191. # Currently supported: mysql, postgresql, sqlite, h2, json, yaml, mongodb
  192. # Fill out connection info below if you're using MySQL, PostgreSQL or MongoDB
  193. storage-method: mysql
  194.  
  195. # This block enables support for split datastores.
  196. split-storage:
  197. enabled: false
  198. methods:
  199. user: h2
  200. group: h2
  201. track: h2
  202. uuid: h2
  203. log: h2
  204.  
  205. data:
  206. # Uses standard DB engine port by default
  207. # MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017
  208. # Specify as "host:port" if differs
  209. address: localhost
  210.  
  211. database: luckperms
  212. username: root
  213. password: ''
  214. pool-size: 10 # The size of the MySQL connection pool.
  215.  
  216. # The prefix for all LuckPerms tables. Change this is you want to use different tables for different servers.
  217. # This should *not* be set to "lp_" if you have previously ran LuckPerms v2.16.81 or earlier with this database.
  218. table_prefix: 'luckperms_'
  219.  
  220. # Set to -1 to disable. If this is the only instance accessing the datastore, you can disable syncing.
  221. # e.g. if you're using sqlite or flatfile, this can be set to -1 to save resources.
  222. sync-minutes: -1
  223.  
  224. # Settings for the messaging service
  225. #
  226. # If enabled and configured, LuckPerms will use the messaging system to inform other
  227. # connected servers of changes. Use the command "/luckperms networksync" to push changes.
  228. # Data is NOT stored using this service. It is only used as a messaging platform.
  229. #
  230. # If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need for LuckPerms
  231. # to poll the database for changes.
  232. #
  233. # Available options:
  234. # bungee ==> uses the plugin messaging channels. Must be enabled on all connected servers to work.
  235. # lilypad ==> uses lilypad pub sub to push changes. You need to have the LilyPad-Connect plugin installed.
  236. # redis ==> uses redis pub sub to push changes. Your redis server must be configured below.
  237. # none ==> nothing
  238. messaging-service: bungee
  239.  
  240. # Settings for Redis.
  241. # Port 6379 is used by default; set address to "host:port" if differs
  242. redis:
  243. enabled: false
  244. address: localhost
  245. password: ''
  246.  
  247.  
  248.  
  249.  
  250. # +------------------------------------------------------------------------+ #
  251. # | Default Assignments | #
  252. # +------------------------------------------------------------------------+ #
  253.  
  254. # This section allows you to define defaults to give users whenever they connect to the server.
  255. # The default assignments are highly configurable and conditional.
  256. #
  257. # There is one default assignment built into LuckPerms, which will add all users to the "default" group if they
  258. # are not a member of any other group. This setting cannot be disabled. However, you can use this section to add more of
  259. # your own.
  260. #
  261. # IMPORTANT:
  262. # In order to save storage space, LuckPerms does not store users who have no permissions defined, and are only a member
  263. # of the default group. Adding default assignments to this section will negate this effect. It is HIGHLY RECCOMENDED
  264. # that instead of assigning defaults here, you add permissions to the "default" group, or set the "default" group to inherit
  265. # other groups, and then use the group-name-rewrite rule above.
  266. #
  267. # It is also important to note that these rules are considered every time a player logs into the server, and are applied
  268. # directly to the user's data. Simply removing a rule here will not reserse the effect of that rule on any users who have
  269. # already had it applied to them.
  270. #
  271. # The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or' characters used in Java.
  272. # e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has 'some.other.permission', or
  273. # 'some.permission.other', and they also have 'some.thing.else'
  274. #
  275. # Groups are represented by the permission node: group.<group name>
  276. # Per server and per world nodes are represented by: "server-world/permission" or "server/permission"
  277. #
  278. # Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
  279. #
  280. # Explanation of the examples below: (they're just to demonstrate the features & use cases)
  281. #
  282. # rule1:
  283. # If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission set to true, and the
  284. # "some.random.permission" set to false... if they're not in the group "prison_titlepack" on the "prison" server, then
  285. # give add them to the "prison_titlepack" group on the "prison" server, and remove "some.random.permission".
  286. #
  287. # rule2:
  288. # If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2, sb_level3, then add
  289. # them to sb_level1 on the skyblock server.
  290. #
  291. # rule3:
  292. # If the user is a member of the default group, remove them from default, add them to member, and set their primary group
  293. # to member.
  294. #
  295. # WARNING: Unlike internal commands, this system does not ensure that a group exists before adding a user to it.
  296. # It also does not unsure that a user is a member of a group before making that group their primary group.
  297. #
  298. # Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and that the user is
  299. # a member of the group.
  300. default-assignments:
  301. # rule1:
  302. # if:
  303. # has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
  304. # has-false: <some.random.permission>
  305. # lacks: <prison/group.prison_titlepack>
  306. # give:
  307. # - prison/group.prison_titlepack
  308. # take:
  309. # - some.random.permission
  310. # rule2:
  311. # if:
  312. # lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
  313. # give:
  314. # - skyblock/group.sb_level1
  315. # rule3:
  316. # if:
  317. # has-true: <group.default>
  318. # take:
  319. # - group.default
  320. # give:
  321. # - prison/group.a
  322. # set-primary-group: a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement