2016-08-20 01:21:16 +08:00
|
|
|
##############################################################################
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | LuckPerms Configuration | #
|
|
|
|
# | https://github.com/lucko/LuckPerms | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
##############################################################################
|
2016-05-22 08:57:10 +08:00
|
|
|
|
2016-10-16 20:58:57 +08:00
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | General | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
|
2016-05-22 08:57:10 +08:00
|
|
|
# The name of the server, used for server specific permissions. Set to 'global' to disable.
|
|
|
|
server: bungee
|
|
|
|
|
2016-09-18 02:05:56 +08:00
|
|
|
# If users on this server should have their global permissions applied.
|
|
|
|
# If set to false, only server specific permissions will apply for users on this server
|
2016-05-22 08:57:10 +08:00
|
|
|
include-global: false
|
|
|
|
|
2016-09-18 02:05:56 +08:00
|
|
|
# If users on this server should have their global world permissions applied.
|
|
|
|
# If set to false, only world specific permissions will apply for users on this server
|
|
|
|
include-global-world: true
|
|
|
|
|
|
|
|
# If users on this server should have global (non-server specific) groups applied
|
|
|
|
apply-global-groups: true
|
|
|
|
|
|
|
|
# If users on this server should have global (non-world specific) groups applied
|
|
|
|
apply-global-world-groups: true
|
|
|
|
|
2017-03-18 04:51:06 +08:00
|
|
|
# If UUIDs should be pulled from the server, or looked up by username based upon previous connections.
|
2016-10-16 20:58:57 +08:00
|
|
|
#
|
2017-03-18 04:51:06 +08:00
|
|
|
# This option should be set to true in most cases. When set to false, in order to get a player's UUID, LuckPerms will:
|
|
|
|
# 1. Check if a player with the given username has joined before, if they have, use the UUID they used on their previous login.
|
|
|
|
# 2. Save and return the players "current" uuid.
|
2016-10-16 20:58:57 +08:00
|
|
|
#
|
2017-03-18 04:51:06 +08:00
|
|
|
# For offline mode (cracked) servers, a players UUID is generated based upon their username.
|
2016-10-16 20:58:57 +08:00
|
|
|
#
|
2017-03-18 04:51:06 +08:00
|
|
|
# IMPORTANT:
|
|
|
|
# If you are using BungeeCord proxy running in online mode, it is important that "online-mode=false" is set all backend server.properties, but
|
|
|
|
# "bungeecord: true" is set in the spigot.yml. You also need to set "ip_forward: true" in BungeeCord's config.yml.
|
|
|
|
# If for whatever reason you are not able to do this, and do not have ip-forward enabled, then you may need to set "use-server-uuids" to false.
|
2016-10-16 20:58:57 +08:00
|
|
|
#
|
2017-03-18 04:51:06 +08:00
|
|
|
# If your proxy is running in offline mode, you should still be setting up ip-forwarding as described above, but may also find that you need to set
|
|
|
|
# "bungee-online-mode" to false in paper.yml, if you are using PaperSpigot. (https://ci.destroystokyo.com/job/PaperSpigot/)
|
|
|
|
#
|
|
|
|
# This option should always be set to true on the BungeeCord side. Don't change unless you're sure you know what you're doing.
|
|
|
|
use-server-uuids: true
|
2016-07-25 18:18:35 +08:00
|
|
|
|
2016-10-16 20:58:57 +08:00
|
|
|
# If the plugin should send log notifications to users whenever permissions are modified.
|
|
|
|
log-notify: true
|
|
|
|
|
|
|
|
# Mirrors world names. Whenever LuckPerms checks what world a user is in, if the world name is in this list, the value assigned
|
|
|
|
# will be sent forward for permission calculation instead.
|
|
|
|
world-rewrite:
|
|
|
|
# world_nether: world
|
|
|
|
# world_the_end: world
|
|
|
|
|
|
|
|
# Rewrites group names. The underlying name of the group does not change, just the output in commands / placeholders / Vault.
|
|
|
|
group-name-rewrite:
|
|
|
|
# default: Member
|
|
|
|
|
2017-02-04 06:24:42 +08:00
|
|
|
# Controls how temporary permissions/parents/meta should be accumulated
|
|
|
|
#
|
|
|
|
# The default behaviour is "deny"
|
|
|
|
# If "accumulate": durations will be added to the existing expiry time
|
|
|
|
# If "replace": durations will be replaced if the new duration is later than the current expiration
|
|
|
|
# If "deny": the command will just fail if you try to add another node with the same expiry
|
|
|
|
temporary-add-behaviour: deny
|
|
|
|
|
2017-03-18 06:54:18 +08:00
|
|
|
# How should LuckPerms determine a users "primary" group.
|
|
|
|
#
|
|
|
|
# Available Options:
|
|
|
|
# -> stored use the value stored against the users record in the file/database
|
|
|
|
# -> parents-by-weight just use the users most highly weighted parent
|
|
|
|
# -> all-parents-by-weight same as above, but calculates based upon all parents inherits from both directly and indirectly
|
|
|
|
primary-group-calculation: stored
|
|
|
|
|
2016-10-16 20:58:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | Permission Calculation | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
|
2016-08-07 07:16:05 +08:00
|
|
|
# If the plugin should apply wildcard permissions.
|
|
|
|
# If set to true, LuckPerms will detect wildcard permissions, and resolve & apply all registered permissions matching
|
2016-09-17 05:09:55 +08:00
|
|
|
# the wildcard.
|
2016-08-07 07:16:05 +08:00
|
|
|
apply-wildcards: true
|
|
|
|
|
2016-08-09 17:09:45 +08:00
|
|
|
# If the plugin should parse regex permissions.
|
|
|
|
# If set to true, LuckPerms will detect regex permissions, marked with "r=" at the start of the node, and resolve &
|
2016-09-20 04:00:23 +08:00
|
|
|
# apply all registered permissions matching the regex.
|
2016-08-09 17:09:45 +08:00
|
|
|
apply-regex: true
|
|
|
|
|
|
|
|
# If the plugin should complete and apply shorthand permissions.
|
|
|
|
# If set to true, LuckPerms will detect and expand shorthand node patterns.
|
|
|
|
apply-shorthand: true
|
|
|
|
|
2016-11-05 17:04:26 +08:00
|
|
|
# Define special group weights for this server.
|
|
|
|
# Default is just 0.
|
|
|
|
group-weight:
|
|
|
|
# admin: 10
|
|
|
|
|
2016-08-30 23:02:01 +08:00
|
|
|
|
2016-09-17 05:09:55 +08:00
|
|
|
|
2016-09-24 01:58:19 +08:00
|
|
|
|
2017-01-23 02:23:08 +08:00
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | Meta Formatting & Stacking | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
|
|
|
|
# Allows you to setup prefix/suffix stacking options.
|
|
|
|
#
|
|
|
|
# Available formats:
|
|
|
|
# - highest
|
|
|
|
# - lowest
|
|
|
|
# - highest_own
|
|
|
|
# - lowest_own
|
|
|
|
# - highest_on_track_<track>
|
|
|
|
# - lowest_on_track_<track>
|
|
|
|
#
|
|
|
|
# Each element is added in the order listed.
|
|
|
|
meta-formatting:
|
|
|
|
prefix:
|
|
|
|
format:
|
|
|
|
- "highest"
|
|
|
|
start-spacer: ""
|
|
|
|
middle-spacer: " "
|
|
|
|
end-spacer: ""
|
|
|
|
suffix:
|
|
|
|
format:
|
|
|
|
- "highest"
|
|
|
|
start-spacer: ""
|
|
|
|
middle-spacer: " "
|
|
|
|
end-spacer: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-16 20:58:57 +08:00
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | Storage | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
2016-09-24 01:58:19 +08:00
|
|
|
|
2016-06-22 23:47:54 +08:00
|
|
|
# Which storage method the plugin should use.
|
2017-04-06 18:30:17 +08:00
|
|
|
#
|
|
|
|
# See: https://github.com/lucko/LuckPerms/wiki/Choosing-a-Storage-type
|
|
|
|
# Currently supported: mysql, mariadb, postgresql, sqlite, h2, json, yaml, mongodb
|
|
|
|
|
|
|
|
# Fill out connection info below if you're using MySQL, MariaDB, PostgreSQL or MongoDB
|
|
|
|
# If your MySQL server supports it, the "mariadb" option is preferred over "mysql".
|
2016-08-20 01:21:16 +08:00
|
|
|
storage-method: h2
|
2016-06-22 23:47:54 +08:00
|
|
|
|
2017-03-12 07:05:03 +08:00
|
|
|
# When using a file-based storage type, LuckPerms can monitor the data files for changes, and then schedule automatic
|
|
|
|
# updates when changes are detected.
|
|
|
|
#
|
|
|
|
# If you don't want this to happen, set this option to false.
|
|
|
|
watch-files: true
|
|
|
|
|
2016-08-31 16:30:19 +08:00
|
|
|
# This block enables support for split datastores.
|
|
|
|
split-storage:
|
|
|
|
enabled: false
|
|
|
|
methods:
|
|
|
|
user: h2
|
|
|
|
group: h2
|
|
|
|
track: h2
|
|
|
|
uuid: h2
|
|
|
|
log: h2
|
|
|
|
|
2016-08-20 01:21:16 +08:00
|
|
|
data:
|
2016-12-26 01:43:36 +08:00
|
|
|
# Uses standard DB engine port by default
|
|
|
|
# MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017
|
|
|
|
# Specify as "host:port" if differs
|
|
|
|
address: localhost
|
|
|
|
|
2016-05-22 08:57:10 +08:00
|
|
|
database: minecraft
|
|
|
|
username: root
|
|
|
|
password: ''
|
2016-10-22 05:22:06 +08:00
|
|
|
pool-size: 10 # The size of the MySQL connection pool.
|
2016-08-20 01:21:16 +08:00
|
|
|
|
2017-01-09 03:33:27 +08:00
|
|
|
# The prefix for all LuckPerms tables. Change this is you want to use different tables for different servers.
|
|
|
|
# This should *not* be set to "lp_" if you have previously ran LuckPerms v2.16.81 or earlier with this database.
|
|
|
|
table_prefix: 'luckperms_'
|
|
|
|
|
2017-03-12 07:05:03 +08:00
|
|
|
# This option controls how frequently LuckPerms will perform a sync task.
|
|
|
|
# A sync task will refresh all data from the storage, and ensure that the most up-to-date data is being used by the plugin.
|
|
|
|
#
|
|
|
|
# This is disabled by default, as most users will not need it. However, if you're using a remote storage type
|
|
|
|
# without a messaging service setup, you may wish to set this value to something like 3.
|
|
|
|
#
|
|
|
|
# Set to -1 to disable the task completely.
|
|
|
|
sync-minutes: -1
|
2016-10-16 20:58:57 +08:00
|
|
|
|
2017-01-23 05:46:22 +08:00
|
|
|
# Settings for the messaging service
|
2016-10-24 21:38:12 +08:00
|
|
|
#
|
2017-01-23 05:46:22 +08:00
|
|
|
# If enabled and configured, LuckPerms will use the messaging system to inform other
|
2016-10-24 21:38:12 +08:00
|
|
|
# connected servers of changes. Use the command "/luckpermsbungee networksync" to push changes.
|
2017-01-23 05:46:22 +08:00
|
|
|
# Data is NOT stored using this service. It is only used as a messaging platform.
|
2016-10-24 21:38:12 +08:00
|
|
|
#
|
|
|
|
# If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need for LuckPerms
|
|
|
|
# to poll the database for changes.
|
2016-12-26 01:43:36 +08:00
|
|
|
#
|
2017-01-23 05:46:22 +08:00
|
|
|
# Available options:
|
|
|
|
# bungee ==> uses the plugin messaging channels. Must be enabled on all connected servers to work.
|
|
|
|
# redis ==> uses redis pub sub to push changes. Your redis server must be configured below.
|
|
|
|
# none ==> nothing
|
|
|
|
messaging-service: none
|
|
|
|
|
2017-03-22 05:54:34 +08:00
|
|
|
# If LuckPerms should automatically push updates after a change has been made with a command.
|
|
|
|
auto-push-updates: true
|
|
|
|
|
2017-01-23 05:46:22 +08:00
|
|
|
# Settings for Redis.
|
2016-12-26 01:43:36 +08:00
|
|
|
# Port 6379 is used by default; set address to "host:port" if differs
|
2016-10-24 21:38:12 +08:00
|
|
|
redis:
|
|
|
|
enabled: false
|
2016-12-26 01:43:36 +08:00
|
|
|
address: localhost
|
2016-10-24 21:38:12 +08:00
|
|
|
password: ''
|
|
|
|
|
2016-10-16 20:58:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
# | Default Assignments | #
|
|
|
|
# +------------------------------------------------------------------------+ #
|
|
|
|
|
|
|
|
# This section allows you to define defaults to give users whenever they connect to the server.
|
|
|
|
# The default assignments are highly configurable and conditional.
|
|
|
|
#
|
|
|
|
# There is one default assignment built into LuckPerms, which will add all users to the "default" group if they
|
|
|
|
# are not a member of any other group. This setting cannot be disabled. However, you can use this section to add more of
|
|
|
|
# your own.
|
|
|
|
#
|
|
|
|
# IMPORTANT:
|
|
|
|
# In order to save storage space, LuckPerms does not store users who have no permissions defined, and are only a member
|
|
|
|
# of the default group. Adding default assignments to this section will negate this effect. It is HIGHLY RECCOMENDED
|
|
|
|
# that instead of assigning defaults here, you add permissions to the "default" group, or set the "default" group to inherit
|
|
|
|
# other groups, and then use the group-name-rewrite rule above.
|
|
|
|
#
|
|
|
|
# It is also important to note that these rules are considered every time a player logs into the server, and are applied
|
|
|
|
# directly to the user's data. Simply removing a rule here will not reserse the effect of that rule on any users who have
|
|
|
|
# already had it applied to them.
|
|
|
|
#
|
|
|
|
# The "has" and "lacks" conditions below support standard boolean logic, using the 'and' & 'or' characters used in Java.
|
|
|
|
# e.g. "(some.other.permission | some.permission.other) & some.thing.else" == a user has 'some.other.permission', or
|
|
|
|
# 'some.permission.other', and they also have 'some.thing.else'
|
|
|
|
#
|
|
|
|
# Groups are represented by the permission node: group.<group name>
|
|
|
|
# Per server and per world nodes are represented by: "server-world/permission" or "server/permission"
|
|
|
|
#
|
|
|
|
# Within conditions, permission nodes MUST be escaped using "<" and ">". See the example below.
|
|
|
|
#
|
2017-02-05 06:32:34 +08:00
|
|
|
# Explanation of the examples below: (they're just to demonstrate the features & use cases)
|
2016-10-16 20:58:57 +08:00
|
|
|
#
|
|
|
|
# rule1:
|
|
|
|
# If a user is either in the vip or vip+ group, and they have the "titles.titlecollector" permission set to true, and the
|
|
|
|
# "some.random.permission" set to false... if they're not in the group "prison_titlepack" on the "prison" server, then
|
|
|
|
# give add them to the "prison_titlepack" group on the "prison" server, and remove "some.random.permission".
|
|
|
|
#
|
|
|
|
# rule2:
|
|
|
|
# If the user isn't in any of the following groups on the skyblock server: sb_level1, sb_level2, sb_level3, then add
|
|
|
|
# them to sb_level1 on the skyblock server.
|
2016-10-18 01:23:41 +08:00
|
|
|
#
|
|
|
|
# rule3:
|
|
|
|
# If the user is a member of the default group, remove them from default, add them to member, and set their primary group
|
|
|
|
# to member.
|
|
|
|
#
|
|
|
|
# WARNING: Unlike internal commands, this system does not ensure that a group exists before adding a user to it.
|
|
|
|
# It also does not unsure that a user is a member of a group before making that group their primary group.
|
|
|
|
#
|
|
|
|
# Before you use "give: group.<name>" or "set-primary-group", make sure that the group exists, and that the user is
|
|
|
|
# a member of the group.
|
2016-10-16 20:58:57 +08:00
|
|
|
default-assignments:
|
|
|
|
# rule1:
|
|
|
|
# if:
|
|
|
|
# has-true: (<group.vip> | <group.vip+>) & <titles.tilecollector>
|
|
|
|
# has-false: <some.random.permission>
|
|
|
|
# lacks: <prison/group.prison_titlepack>
|
|
|
|
# give:
|
|
|
|
# - prison/group.prison_titlepack
|
|
|
|
# take:
|
|
|
|
# - some.random.permission
|
|
|
|
# rule2:
|
|
|
|
# if:
|
|
|
|
# lacks: <skyblock/group.sb_level1> & <skyblock/group.sb_level2> & <skyblock/group.sb_level3>
|
|
|
|
# give:
|
2016-10-18 01:23:41 +08:00
|
|
|
# - skyblock/group.sb_level1
|
|
|
|
# rule3:
|
|
|
|
# if:
|
|
|
|
# has-true: <group.default>
|
|
|
|
# take:
|
|
|
|
# - group.default
|
|
|
|
# give:
|
|
|
|
# - group.member
|
|
|
|
# set-primary-group: member
|