Created
May 2, 2020 04:25
-
-
Save bloodmc/96594481e6688a54d8747eb47e3d6a34 to your computer and use it in GitHub Desktop.
flag_definitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GriefDefender { | |
# Used to define a group of custom flags for players/admins. | |
# 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. | |
# hover=<text>: The hover text to be displayed when hovering over group name in GUI. | |
# title=<text>: The title text to be used for TAB display. | |
# 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 optional definition contexts that will be applied to all permissions. | |
# Note: This is primary used with 'default' and 'override' contexts. Ex. contexts=["default=global"] | |
# Each group will have an associated permission in order to be viewable. | |
# The 'user' group will use the permission : 'griefdefender.custom.flag.group.user' | |
# The 'admin' group will use the permission : 'griefdefender.custom.flag.group.admin' | |
# 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. | |
# Note: This value will be set as transient and will not persist. | |
# description: The flag description to display on hover. Uses the legacy text format. | |
# permissions: The list of permissions to link to definition. Each permission accepts the following contexts : | |
# 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: Required if no source or target context is specified, the permission will default to ALL. | |
# Note: Available contexts are : flag, source, target, state, used_item, item_name | |
# These contexts may change, See https://github.com/bloodmc/GriefDefender/wiki for latest information. | |
custom-flags { | |
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 { | |
creeper-block-explosion { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether a creeper can explode." | |
enabled=true | |
permissions=[ | |
"flag=explosion-block, source=minecraft:creeper" | |
] | |
} | |
creeper-entity-explosion { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether a creeper can explode." | |
enabled=true | |
permissions=[ | |
"flag=explosion-block, source=minecraft:creeper" | |
] | |
} | |
exp-drop { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether experience orbs can drop." | |
enabled=true | |
permissions=[ | |
"flag=entity-spawn, target=minecraft:xp_orb" | |
] | |
} | |
fall-player-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can take fall damage." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=minecraft:player, source=minecraft:fall" | |
] | |
} | |
monster-animal-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether monsters can deal damage." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, source=#monster, target=#animal" | |
] | |
} | |
monster-player-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether monsters can deal damage." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, source=#monster, target=minecraft:player" | |
] | |
} | |
monster-spawn { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether monsters, such as creepers and skeletons, can spawn." | |
enabled=true | |
permissions=[ | |
"flag=entity-spawn, target=#monster" | |
] | |
} | |
piston-use { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether pistons can be used." | |
enabled=true | |
permissions=[ | |
"flag=block-break, target=minecraft:piston", | |
"flag=block-place, target=minecraft:piston" | |
] | |
} | |
player-block-break { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether blocks can be broken." | |
enabled=true | |
permissions=[ | |
"flag=block-break, source=minecraft:player" | |
] | |
} | |
player-block-interact { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether players can interact with blocks.\n&bNote&f: This does not include inventory blocks such as chests." | |
enabled=true | |
permissions=[ | |
"flag=interact-block-secondary, source=minecraft:player" | |
] | |
} | |
player-block-place { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether blocks can be placed." | |
enabled=true | |
permissions=[ | |
"flag=block-place, source=minecraft:player" | |
] | |
} | |
player-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=minecraft:player" | |
] | |
} | |
player-drop { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can drop items." | |
enabled=true | |
permissions=[ | |
"flag=item-drop, source=minecraft:player" | |
] | |
} | |
player-enderpearl-interact { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether enderpearl can be used." | |
enabled=true | |
permissions=[ | |
"flag=interact-item-secondary, source=minecraft:player" | |
] | |
} | |
player-enter { | |
contexts=[ | |
"gd_claim=claim" | |
] | |
default-value=true | |
description="Controls whether a player can enter this claim." | |
enabled=true | |
permissions=[ | |
"flag=enter-claim, source=minecraft:player" | |
] | |
} | |
player-entity-interact { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can interact with entities.\n&bNote&f: This does not include chest access with entities such as horses." | |
enabled=true | |
permissions=[ | |
"flag=interact-entity-secondary, source=minecraft:player" | |
] | |
} | |
player-exit { | |
contexts=[ | |
"gd_claim=claim" | |
] | |
default-value=true | |
description="Controls whether a player can exit this claim." | |
enabled=true | |
permissions=[ | |
"flag=enter-claim, source=minecraft:player" | |
] | |
} | |
player-inventory-interact { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether players can interact with inventory." | |
enabled=true | |
permissions=[ | |
"flag=interact-inventory, source=minecraft:player" | |
] | |
} | |
player-pickup { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can pickup items." | |
enabled=true | |
permissions=[ | |
"flag=item-pickup, source=minecraft:player" | |
] | |
} | |
player-teleport-from { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can teleport from this claim." | |
enabled=true | |
permissions=[ | |
"flag=entity-teleport-from, target=minecraft:player" | |
] | |
} | |
player-teleport-to { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether players can teleport to this claim." | |
enabled=true | |
permissions=[ | |
"flag=entity-teleport-to, target=minecraft:player" | |
] | |
} | |
tnt-block-explosion { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether tnt can explode." | |
enabled=true | |
permissions=[ | |
"flag=explosion-block, source=minecraft:tnt" | |
] | |
} | |
tnt-entity-explosion { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=false | |
description="Controls whether tnt can explode." | |
enabled=true | |
permissions=[ | |
"flag=explosion-entity, source=minecraft:tnt" | |
] | |
} | |
vehicle-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether vehicles can be destroyed." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=#vehicle" | |
] | |
} | |
wither-block-break { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether withers can do damage." | |
enabled=true | |
permissions=[ | |
"flag=block-break, source=minecraft:wither" | |
] | |
} | |
wither-entity-damage { | |
contexts=[ | |
"gd_claim_default=basic" | |
] | |
default-value=true | |
description="Controls whether withers can do damage." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, source=minecraft:wither" | |
] | |
} | |
} | |
enabled=true | |
# The hover text to be displayed when hovering over group name in GUI. | |
hover="" | |
# The title text to be used for TAB display. | |
title="" | |
} | |
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 { | |
chest-access { | |
default-value=false | |
description="Controls whether a player can access chest inventories." | |
enabled=true | |
permissions=[ | |
"flag=interact-block-secondary, target=minecraft:chest, source=minecraft:player", | |
"flag=interact-inventory, target=minecraft:chest, source=minecraft:player" | |
] | |
} | |
chorus-fruit-teleport { | |
default-value=true | |
description="Controls whether a player can use chorus fruit to teleport." | |
enabled=true | |
permissions=[ | |
"flag=interact-item-secondary, target=minecraft:chorus_fruit" | |
] | |
} | |
crop-growth { | |
default-value=true | |
description="Controls whether crops can grow." | |
enabled=true | |
permissions=[ | |
"flag=block-grow, target=#crop" | |
] | |
} | |
damage-animals { | |
default-value=false | |
description="Controls whether animals can be damaged." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=#animal" | |
] | |
} | |
enderman-grief { | |
default-value=false | |
description="Controls whether enderman can grief." | |
enabled=true | |
permissions=[ | |
"flag=block-break, source=minecraft:enderman" | |
] | |
} | |
fire-damage { | |
default-value=false | |
description="Controls whether fire can cause damage." | |
enabled=true | |
permissions=[ | |
"flag=block-modify, source=minecraft:fire" | |
] | |
} | |
fire-spread { | |
default-value=false | |
description="Controls whether fire can spread." | |
enabled=true | |
permissions=[ | |
"flag=block-spread, source=minecraft:fire" | |
] | |
} | |
grass-growth { | |
default-value=true | |
description="Controls whether grass can grow." | |
enabled=true | |
permissions=[ | |
"flag=block-grow, target=minecraft:grass" | |
] | |
} | |
ice-form { | |
default-value=true | |
description="Controls whether ice can form." | |
enabled=true | |
permissions=[ | |
"flag=block-modify, target=minecraft:ice" | |
] | |
} | |
ice-melt { | |
default-value=true | |
description="Controls whether ice can melt." | |
enabled=true | |
permissions=[ | |
"flag=block-modify, target=minecraft:water" | |
] | |
} | |
lava-flow { | |
default-value=true | |
description="Controls whether lava can flow." | |
enabled=true | |
permissions=[ | |
"flag=liquid-flow, source=minecraft:flowing_lava" | |
] | |
} | |
leaf-decay { | |
default-value=true | |
description="Controls whether leaves can decay." | |
enabled=true | |
permissions=[ | |
"flag=leaf-decay" | |
] | |
} | |
lighter { | |
default-value=false | |
description="Controls whether a player can use flint and steel." | |
enabled=true | |
permissions=[ | |
"flag=interact-item-secondary, target=minecraft:flint_and_steel" | |
] | |
} | |
lightning { | |
default-value=true | |
description="Controls whether lightning can cause harm." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, source=minecraft:lightning_bolt" | |
] | |
} | |
mycelium-spread { | |
default-value=true | |
description="Controls whether mycelium can spread." | |
enabled=true | |
permissions=[ | |
"flag=block-spread, target=minecraft:mycelium" | |
] | |
} | |
pvp { | |
default-value=true | |
description="Controls whether PvP combat is allowed." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=minecraft:player, source=minecraft:player" | |
] | |
} | |
ride { | |
default-value=true | |
description="Controls whether vehicles(including animals) can be mounted." | |
enabled=true | |
permissions=[ | |
"flag=entity-riding, target=#vehicle, source=minecraft:player" | |
] | |
} | |
sleep { | |
default-value=true | |
description="Controls whether players can sleep in beds." | |
enabled=true | |
permissions=[ | |
"flag=interact-block-secondary, target=minecraft:bed, source=minecraft:player" | |
] | |
} | |
snow-fall { | |
default-value=true | |
description="Controls whether snow can fall." | |
enabled=true | |
permissions=[ | |
"flag=block-place, target=minecraft:snow_layer" | |
] | |
} | |
snow-melt { | |
default-value=true | |
description="Controls whether snow can melt." | |
enabled=true | |
permissions=[ | |
"flag=block-break, target=minecraft:snow_layer" | |
] | |
} | |
soil-dry { | |
default-value=true | |
description="Controls whether soil will dry." | |
enabled=true | |
permissions=[ | |
"flag=block-modify, state=moisture:0" | |
] | |
} | |
spawn-ambient { | |
default-value=true | |
description="Controls whether ambients, such as bats, can spawn." | |
enabled=true | |
permissions=[ | |
"flag=entity-spawn, target=#ambient" | |
] | |
} | |
spawn-animal { | |
default-value=true | |
description="Controls whether animals, such as cows and pigs, can spawn." | |
enabled=true | |
permissions=[ | |
"flag=entity-spawn, target=#animal" | |
] | |
} | |
spawn-aquatic { | |
default-value=true | |
description="Controls whether aquatics, such as squids and guardians, can spawn." | |
enabled=true | |
permissions=[ | |
"flag=entity-spawn, target=#aquatic" | |
] | |
} | |
use { | |
default-value=false | |
description="Controls whether players can use non-inventory blocks in this claim." | |
enabled=true | |
permissions=[ | |
"flag=interact-block-secondary, source=minecraft:player", | |
"flag=interact-entity-secondary, source=minecraft:player" | |
] | |
} | |
vehicle-destroy { | |
default-value=false | |
description="Controls whether vehicles can be destroyed." | |
enabled=true | |
permissions=[ | |
"flag=entity-damage, target=#vehicle" | |
] | |
} | |
vehicle-place { | |
default-value=true | |
description="Controls whether vehicles(boats, minecarts, etc.) can be placed." | |
enabled=true | |
permissions=[ | |
"flag=interact-item-secondary, target=#vehicle" | |
] | |
} | |
water-flow { | |
default-value=true | |
description="Controls whether water can flow." | |
enabled=true | |
permissions=[ | |
"flag=liquid-flow, source=minecraft:flowing_water" | |
] | |
} | |
} | |
enabled=true | |
# The hover text to be displayed when hovering over group name in GUI. | |
hover="" | |
# The title text to be used for TAB display. | |
title="" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment