Add set-primary-group option to the default assignments
This commit is contained in:
@@ -156,6 +156,16 @@ data {
|
||||
# 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.
|
||||
#
|
||||
# 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.
|
||||
default-assignments {
|
||||
# rule1 {
|
||||
# if {
|
||||
@@ -178,4 +188,16 @@ default-assignments {
|
||||
# "skyblock/group.sb_level1"
|
||||
# ]
|
||||
# }
|
||||
# rule3 {
|
||||
# if {
|
||||
# has-true="<group.default>"
|
||||
# }
|
||||
# take = [
|
||||
# "group.default"
|
||||
# ]
|
||||
# give = [
|
||||
# "group.member"
|
||||
# ]
|
||||
# set-primary-group="member"
|
||||
# }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user