预制标签
# 概览
预制标签系统为用户及管理员提供了简便管理领地标签的可能。 GriefDefender 默认提供了一些较为通用的预制标签,默认提供的标签数据只适用于纯净且可以于以下文件找到
# Sponge
./config/GriefDefender/presets/minecraft.conf
# Bukkit
./plugins/GriefDefender/presets/minecraft.conf
名词详解
flag definitions - 预制标签 flag - 基础标签 permission - 规则 PUBLC - 公众 OWNER - 受信者
# 管理标签
管理员能根据需要对预制标签进行增删改,以便最大程度的客制化用户的标签使用体验。
如果要向默认提供的 minecraft 预制标签组添加新标签,请打开 ./presets/minecraft.conf
文件。
在本节,您将看到两个预制标签页 'admin' 和 'user'。
# 添加新的预制标签
我们假设您要往 'admin' 标签页添加新标签。
- 克隆一个预制标签,我们以
ambient-spawn
作为样例。
ambient-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=#ambient"
]
}
2
3
4
5
6
7
8
9
10
让我们一步步拆分其组成
# 名称
ambient-spawn
- 这是定义的名称,当用户在标签 GUI中打开它时,该名称将显示给用户。它可以是你喜欢的任何东西。
# 情境
contexts=[
"gd_claim_default=user"
]
2
3
这是预制标签中所包含权限 permissions=[...]
的作用情境。
其目前只接受以下值 gd_claim_default
, gd_claim_override
,或 gd_claim
。
预知更多,详见 https://github.com/bloodmc/GriefDefender/wiki/Contexts 来进一步了解情境的作用。
# 默认值
default-value=true
- 这是 GD 在启动期间应用预制标签时使用的默认值。
GD 仅在启动期间将此值作为临时权限应用,前提是情境包括 gd_claim_default
或 gd_claim_override
。
如果定义不包含这些情境之一,则忽略默认值。
# 启用与否
enabled=true
- 该选项决定了 GD 是否使用该预制标签,如果设为 false
,该预制标签将被忽略。
# 规则
permissions=[
"flag=entity-spawn, target=#ambient",
"flag=xxx"
]
2
3
4
这里定义了该预制标签中包含的基础标签。一个预制标签可以拥有一个乃至多个基础标签。如果要将多条基础标签整合进预制标签,那么应在每行末尾插入一个 ,
再添加新行。
在每行中需要定义 flag=<基础标签>
及其紧接着的目标和来源。
因为 GD 会自动应用到所有检测目标,如果您想要一条规则应用到全部可能的目标,则不填 target
。
因为 GD 会自动检测所有来源,如果您想要一条规则应用到全部可能的来源,则不填 source
。
一些常用的规则情境
source 行为来源
target 作用目标
used_item 使用物品
item_name 物品名称
server 所处服务器
state 状态
world 世界
2
3
4
5
6
7
提供的情境必须是有效且适用于标签。要在游戏中找到合适的值,请执行以下操作
- 运行命令
/gddebug record claim
- 这将在您所在的领地中启动调试会话。 - 做您想通过领地标签来限制的事
- 运行命令
/gddebug paste
- 这将显示一个 web链接 以查看调试结果。 - 打开链接,您将看到 GD 为领地检查的操作列表。您会在
source
target
列看到您所需要的值。
要知晓 used_item
或任何其他情境,找到情境列,您将会在特定行看到该操作所支持的情境。
另一个找到您想获取的情境的方法是查阅相关资料。
# Minecraft 预制标签预设
有关如何使用标志配置的更多信息,请参见下文
Minecraft 预设
# A collection of flag definitions designed for vanilla minecraft.
# Each group defined will be displayed in the flag GUI for users.
# Groups can have the following settings :
# enabled=<true|false>: Whether the group is enabled.
# admin-group=<true|false>: Whether this group is considered for admin use only.
# Note: GUI toggles in PRESETS will always apply to current claim only.
# Note: If you assign users the permission 'griefdefender.admin.advanced-flags', they will be able to access admin presets within the claim tab.
# It is recommended not to assign this permission to users for best experience.
# value=<true|false>: This is used to set a default value for the flag definition. It is only used in conjunction with 'override=<type>, default=<type> settings.
# contexts=["key=value"]: A list of definition contexts that will be applied to all permissions.
# Note: This is primary used with 'default' and 'override' contexts. Ex. contexts=["default=global"]
# Note: You must specify one of the following contexts :'gd_claim_default=<type>' or 'gd_claim_override=<type>''
# Note: Context values support wildcards '?' and '*' by using Apache's wildcard matcher.
# The wildcard '?' represents a single character.
# The wildcard '*' represents zero or more characters.
# Each group will have an associated permission in order to be viewable.
# The user groups will use the permission : 'griefdefender.user.custom.flag.<preset>.<group>
# The admin groups will use the permission : 'griefdefender.admin.custom.flag.<preset>.<group>
# Within each group, you can define flag definitions.
# Each flag definition must be defined in the following format:
# enabled: Controls whether the definition is enabled. Accepts a value of 'true' or 'false'
# default-value: The default value to assign flag definition.
# description: The flag description to display on hover. Uses the legacy text format.
# permissions: The list of permissions to link to definition. Permissions can accept various contexts such as :
# flag=<linked-flag>: This context is used to link the permission to a GD specific flag. Ex. 'flag=block-break' would link permission to GD's block-break flag
# source=<id>: This context is used to specify a source id such as 'minecraft:creeper'.
# target=<id>: This context is used to specify a target id such as 'minecraft:chest'.
# state=<properties>: This context is used to specify a blockstate property such as 'state=lit:true'.
# Note: All flag definitions that contain a definition context of 'gd_claim_default' or 'gd_claim_override' will be applied to permissions during server startup.
# Note: Required if no source or target context is specified, the permission will default to ALL.
# Note: Commonly used contexts are : flag, source, target, state, used_item, item_name, world, server
# These contexts may change, See https://github.com/bloodmc/GriefDefender/wiki/Contexts for latest information.
minecraft {
groups {
admin {
# Set to true if this flag group is for admin use only.
# Note: If admin group, the permission is 'griefdefender.admin.custom.flag.<groupname>
# Note: If user group (admin set false), the permission is 'griefdefender.user.custom.flag.<groupname>
admin-group=true
definitions {
ambient-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=#ambient"
]
}
animal-block-modify {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-modify, source=#animal"
]
}
animal-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=#animal"
]
}
aquatic-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=#aquatic"
]
}
armorstand-use {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-item-secondary, target=minecraft:armor_stand, source=minecraft:player",
"flag=entity-damage, target=minecraft:armor_stand, source=minecraft:player",
"flag=interact-entity-secondary, target=minecraft:armor_stand, source=minecraft:player",
"flag=interact-inventory, target=minecraft:armor_stand, source=minecraft:player"
]
}
block-trampling {
contexts=[
"gd_claim_override=user"
]
default-value=false
enabled=true
permissions=[
"flag=collide-block, target=minecraft:turtle_egg, target=minecraft:farmland"
]
}
chorus-fruit-teleport {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=item-use, target=minecraft:chorus_fruit, source=minecraft:player"
]
}
commandblock-block-break {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:command_block, source=minecraft:chain_command_block, source=minecraft:repeating_command_block"
]
}
commandblock-block-place {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-place, source=minecraft:command_block, source=minecraft:chain_command_block, source=minecraft:repeating_command_block"
]
}
creeper-block-explosion {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=explosion-block, source=minecraft:creeper"
]
}
creeper-entity-explosion {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=explosion-entity, source=minecraft:creeper"
]
}
endcrystal-use {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=projectile-impact-entity, target=minecraft:end_crystal, source=minecraft:arrow, source=minecraft:player",
"flag=interact-item-secondary, target=minecraft:end_crystal, source=minecraft:arrow, source=minecraft:player",
"flag=entity-damage, target=minecraft:end_crystal, source=minecraft:arrow, source=minecraft:player",
"flag=interact-entity-secondary, target=minecraft:end_crystal, source=minecraft:arrow, source=minecraft:player"
]
}
entity-armorstand-damage {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:armor_stand, source=minecraft:player",
"flag=projectile-impact-entity, target=minecraft:armor_stand, source=minecraft:player"
]
}
entity-itemframe-damage {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:glow_item_frame, target=minecraft:item_frame",
"flag=projectile-impact-entity, target=minecraft:glow_item_frame, target=minecraft:item_frame"
]
}
exp-drop {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=minecraft:xp_orb"
]
}
fall-entity-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, source=minecraft:fall"
]
}
fall-player-damage {
contexts=[
"gd_claim_override=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:player, source=minecraft:fall"
]
}
falling-block-break {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:fall"
]
}
fire-block-damage {
contexts=[
"gd_claim_default=global"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:fire"
]
}
fire-entity-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, source=minecraft:fire",
"flag=entity-damage, source=minecraft:fire_tick",
"flag=entity-damage, source=minecraft:magma_block",
"flag=entity-damage, source=minecraft:lava"
]
}
lightning-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, source=minecraft:lightning_bolt"
]
}
monster-animal-damage {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=entity-damage, source=#monster, target=#animal",
"flag=entity-damage, source=#monster, target=#aquatic",
"flag=projectile-impact-entity, source=#monster, target=#aquatic"
]
}
monster-player-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, source=#monster, target=minecraft:player",
"flag=projectile-impact-entity, source=#monster, target=minecraft:player"
]
}
monster-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-spawn, target=#monster"
]
}
piston-item-spawn {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=item-spawn, source=minecraft:piston",
"flag=item-spawn, source=minecraft:sticky_piston"
]
}
piston-use {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-break, source=minecraft:piston",
"flag=block-place, source=minecraft:piston",
"flag=block-break, source=minecraft:sticky_piston",
"flag=block-place, source=minecraft:sticky_piston"
]
}
player-block-break {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-break, source=minecraft:player"
]
}
player-block-interact {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-block-secondary, source=minecraft:player"
]
}
player-block-place {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-place, source=minecraft:player"
]
}
player-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:player",
"flag=projectile-impact-entity, target=minecraft:player"
]
}
player-enderpearl-interact {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-item-secondary, source=minecraft:player, target=minecraft:ender_pearl"
]
}
player-endportal-use {
contexts=[
"gd_claim_default=global"
]
default-value=true
enabled=true
permissions=[
"flag=entity-teleport-from, source=minecraft:end_portal, target=minecraft:player"
]
}
player-enter {
contexts=[
"gd_claim=claim"
]
default-value=true
enabled=true
permissions=[
"flag=enter-claim, source=minecraft:player"
]
}
player-entity-interact {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-entity-secondary, source=minecraft:player"
]
}
player-exit {
contexts=[
"gd_claim=claim"
]
default-value=true
enabled=true
permissions=[
"flag=exit-claim, source=minecraft:player"
]
}
player-item-drop {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=item-drop, source=minecraft:player"
]
}
player-item-pickup {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=item-pickup, source=minecraft:player"
]
}
player-itemframe-interact {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-entity-secondary, target=minecraft:glow_item_frame, target=minecraft:item_frame, source=minecraft:player"
]
}
player-itemhanging-place {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-item-secondary, target=#hanging, source=minecraft:player"
]
}
player-netherportal-use {
contexts=[
"gd_claim_default=global"
]
default-value=true
enabled=true
permissions=[
"flag=entity-teleport-from, source=minecraft:nether_portal, target=minecraft:player"
]
}
player-teleport-from {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-teleport-from, target=minecraft:player"
]
}
player-teleport-to {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-teleport-to, target=minecraft:player"
]
}
player-villager-damage {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:villager, source=minecraft:player",
"flag=projectile-impact-entity, target=minecraft:villager, source=minecraft:player"
]
}
ravager-block-break {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:ravager"
]
}
silverfish-block-infest {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-modify, source=minecraft:silverfish"
]
}
tnt-block-explosion {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=explosion-block, source=minecraft:tnt"
]
}
tnt-entity-explosion {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=explosion-entity, source=minecraft:tnt"
]
}
turtle-egg-hatch {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:turtle_egg, target=minecraft:turtle_egg"
]
}
villager-farm {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:villager, target=#crops",
"flag=block-place, source=minecraft:villager, target=#crops"
]
}
villager-trade {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-entity-secondary, target=minecraft:villager, source=minecraft:player"
]
}
wither-block-break {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-break, source=minecraft:wither"
]
}
wither-entity-damage {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, source=minecraft:wither"
]
}
}
# Whether flag definition group is enabled.
enabled=true
}
user {
# Set to true if this flag group is for admin use only.
# Note: If admin group, the permission is 'griefdefender.admin.custom.flag.<groupname>
# Note: If user group (admin set false), the permission is 'griefdefender.user.custom.flag.<groupname>
admin-group=false
definitions {
block-fertilize {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-grow, used_item=minecraft:bone_meal, target=#crops, source=minecraft:player",
"flag=block-grow, used_item=minecraft:bone_meal, target=#plants, source=minecraft:player"
]
}
chest-access {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-block-secondary, target=minecraft:chest, source=minecraft:player",
"flag=interact-inventory, target=minecraft:chest, source=minecraft:player"
]
}
crop-growth {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-grow, target=#crops"
]
}
damage-animals {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=entity-damage, target=#animal",
"flag=projectile-impact-entity, target=#animal"
]
}
enderman-grief {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-break, source=minecraft:enderman",
"flag=block-place, source=minecraft:enderman"
]
}
fire-spread {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=block-spread, source=minecraft:fire",
"flag=block-spread, source=minecraft:lava"
]
}
grass-growth {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-grow, target=minecraft:grass"
]
}
ice-form {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-modify, target=minecraft:ice"
]
}
ice-melt {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-modify, target=minecraft:water, source=minecraft:ice"
]
}
lava-flow {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=liquid-flow, source=minecraft:lava, target=minecraft:air"
]
}
leaf-decay {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=leaf-decay"
]
}
lighter {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-item-secondary, target=minecraft:flint_and_steel, source=minecraft:player"
]
}
mushroom-growth {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-grow, target=#mushroom"
]
}
mycelium-spread {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-spread, target=minecraft:mycelium"
]
}
pvp {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-damage, target=minecraft:player, source=minecraft:player",
"flag=projectile-impact-entity, target=minecraft:player, source=minecraft:player"
]
}
ride {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=entity-riding, target=#vehicle, source=minecraft:player",
"flag=interact-entity-secondary, target=#vehicle, source=minecraft:player"
]
}
sign-use {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-block-primary, target=#signs, source=minecraft:player",
"flag=interact-block-secondary, target=#signs, source=minecraft:player"
]
}
sleep {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-block-secondary, target=#beds, source=minecraft:player",
"flag=interact-item-secondary, target=#beds, source=minecraft:player"
]
}
snow-fall {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-place, target=minecraft:snow, source=minecraft:air"
]
}
snow-melt {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-break, source=minecraft:snow"
]
}
snowman-trail {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-place, source=minecraft:snow_golem, target=minecraft:snow"
]
}
soil-dry {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-modify, source=minecraft:farmland, state=moisture:0"
]
}
vehicle-use {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=interact-item-secondary, target=minecraft:minecart, target=#boats, source=minecraft:player",
"flag=entity-damage, target=minecraft:minecart, target=minecraft:boat, source=minecraft:player",
"flag=entity-riding, target=minecraft:minecart, target=minecraft:boat, source=minecraft:player",
"flag=interact-entity-secondary, target=minecraft:minecart, target=minecraft:boat, source=minecraft:player"
]
}
villager-trade {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=interact-entity-secondary, target=minecraft:villager, source=minecraft:player"
]
}
vine-growth {
contexts=[
"gd_claim_default=user"
]
default-value=true
enabled=true
permissions=[
"flag=block-grow, target=minecraft:vine"
]
}
water-flow {
contexts=[
"gd_claim_default=user"
]
default-value=false
enabled=true
permissions=[
"flag=liquid-flow, source=minecraft:water, target=minecraft:air"
]
}
}
# Whether flag definition group is enabled.
enabled=true
}
}
version="1.0"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
# GUI 组成及工作方式
标签 GUI旨在允许用户和管理员轻松管理其领地标签。
打开标签界面的指令是 /cf
或 /gd flag claim
在 GD 2.0 中, 所有预制标签可以应用到两种新玩家类型,即 : PUBLIC 和 OWNER。
PUBLIC
- 在标签界面中切换预制标签页为 PUBLIC
,所有未被信任的玩家都将被影响。
OWNER
- 在标签界面中切换预制标签页为 OWNER
,所有领地受信者及所有者本身都将被影响。
# 权限
以下权限控制着用户对预制标签的访问 griefdefender.user.custom.flag.<标签组>.<预制标签名称>
.
我们假设您不想让用户有权控制 damage-animals
预制标签。 您需要在 LuckPerms 输入以下命令 /lp group <groupname> set griefdefender.user.custom.flag.user.damage-animals false
# 标签值
如下所示,两个 管理/用户 预制标签都以 true
或 false
来显示您所处领地的标签影响。
# 管理员GUI相关
⚠️ 管理员标签组的标签只会影响您所在领地。
默认情况下,管理员可以访问2种模式 PRESET
和 ADVANCED
。
PRESET
模式直接链接到 minecraft 预设标签定义预设文件。每个组都作为一个选项页并将该选项页定义的内容读入 GUI。
GD 随附 2 个预制标签组,即 USER
和 ADMIN
。
这两个小组都将使用预制标签。如果需要将标志设置为默认值,请在配置中进行设置,如上所示。
# 用户GUI
⚠️ 用户标签组的预制标签只会影响您所在的领地。
⚠️ 如果您想要更改 USER
于别人的领地中,那您必须有忽略领地的权限并输入 /ignoreclaims
,之后就能使用 /cf
命令了。
作为用户,如果您输入 /cf
命令,您将看到以下内容