Updated Flags (markdown)

bloodmc 2021-07-23 20:52:33 -04:00
parent bd70c9113d
commit 549e0c8050

@ -36,7 +36,7 @@ See https://github.com/bloodmc/GriefDefender/wiki/Contexts on what contexts you
| `<flag>` | The action or event to manage [`flag`](#available-flags) |
| `<target>` | What is to be affected by the action ie. `minecraft:dirt`. Use `any` or `modid:any` as wildcard.|
| `<value>` | Whether to allow, deny or remove the flag `false\|undefined\|true` , instead of `undefined` you can use `0` |
| `context[key=value]`| Optional current contexts:<br>`override=type` will apply it to all claims of that type.<br>`default` will set as default for type you're standing in so all newly created claims will get that flag<br>`source` what triggers the flag ie. `minecraft:player`<br>`used_item` The used item of player<br>Ex. `/cf entity-damage pig false context[used_item=diamond_sword, override=basic]` This would deny damage to a pig only when a diamond sword is used in a basic claim|
| `[key=value]`| Optional current contexts:<br>`override=type` will apply it to all claims of that type.<br>`default` will set as default for type you're standing in so all newly created claims will get that flag<br>`source` what triggers the flag ie. `minecraft:player`<br>`used_item` The used item of player<br>Ex. `/cf entity-damage pig false used_item=diamond_sword override=basic` This would deny damage to a pig only when a diamond sword is used in a basic claim|
### Commandlist
___
@ -46,7 +46,7 @@ ___
Toggles claim flag debug mode. Used to test flags in claims as a user with no permissions.
___
#### `/gd flag claim [<flag> <target> <value> [context[key=value]]]`
#### `/gd flag claim [<flag> <target> <value> [contexts]`
**Aliases**: `cf|claimflag`
Edits flags, can apply to claim types or specific claims.
@ -54,13 +54,13 @@ Edits flags, can apply to claim types or specific claims.
Note: reason is only supported in Wilderness claim when using override context to ban usage in ALL claim types.
___
#### `/gd flag group <group> [<flag> <target> <value> [context[key=value]]]`
#### `/gd flag group <group> [<flag> <target> <value> [contexts]`
**Aliases**: `cfg|claimflaggroup`
Edits flags that apply to a group.
___
#### `/gd flag player <player> [<flag> <target> <value> [context[key=value]]]`
#### `/gd flag player <player> [<flag> <target> <value> [contexts]`
**Aliases**: `cfp|claimflagplayer`
Edits flags that apply to a player.
@ -87,13 +87,13 @@ Specifying no modid will always default to minecraft. The format for blocks is `
To allow Pixelmon Pokeballs to interact with any blocks in all basic claims, has to be run while standing in a basic claim.
`/cf projectile-impact-block any true context[source=pixelmon:occupiedpokeball, override=basic]`
`/cf projectile-impact-block any true source=pixelmon:occupiedpokeball override=basic`
### Example 3
To prevent only players from using portals that are in the group "Jailed" in all admin claims. Has to execute while standing in an admin claim.
`/cfg Jailed portal-use any false context[source=minecraft:player, override=admin]`
`/cfg Jailed portal-use any false source=minecraft:player override=admin`
### Example 4
@ -127,7 +127,7 @@ Disable animal damage in all basic claim's for group `starters`
GD:
```
/cfg starters entity-damage #animal false context[default=basic]
/cfg starters entity-damage #animal false default=basic
```
LP:
@ -195,9 +195,9 @@ GD provides a few context group types that can be used to specify all of a type
### Example 1
To prevent all monsters from entering admin claims by default.
`/cf enter-claim #monster false context[default=admin]`
`/cf enter-claim #monster false default=admin`
or
`/cf enter-claim false context[default=admin target=#monster]`
`/cf enter-claim false default=admin target=#monster`
### Notes
<a name="note1"><sup>1</sup></a> Entity type (`modid:monster|aquatic|ambient|animal`) may also be used to target all entities of that type from a specific mod.