Updated Flags (markdown)

bloodmc 2020-02-10 16:44:47 -05:00
parent e4fc702ef0
commit ed86d135c4

@ -30,6 +30,20 @@ Note: Flag commands are just wrappers around LuckPerm's API. Everything set via
| `<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>Note: Using override in wilderness will apply to ALL claim types.<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|
## Contexts
Context | Value | Description |
-------------------------------------------------|---------------|--------------|
```default``` | ```admin```<br>```basic```<br>```subdivision```<br>```town```<br>```wilderness``` | Applies context as a default to all claims of type specified. <br />Note: Use `global` as value to apply to all types.
```override``` | ```admin```<br>```basic```<br>```subdivision```<br>```town```<br>```wilderness``` | Applies context as an override to all claims of type specified. <br />Note: Use `global` as value to apply to all types.
```source``` | `<source_id>` | Applies context to a specific specific source. <br />Example: `minecraft:creeper`
```state``` | `<state>` | Applies context to a specific specific block state. <br />Example: `powered:true` <br /> See https://minecraft.gamepedia.com/Block_states for a list of all vanilla block states.
```used_item``` | `<item_id>` | Applies context to a specific specific used item. <br />Example: `minecraft:diamond_sword`
```server``` | `<server_name>` | Applies context to a specific server.<br />Note: This uses the server name specified in permissions plugin. If no server context is specified or server name is not set, it defaults to `<global>`.
```world``` | `<world_name>` | Applies context to a specific world.
### Commandlist
___
#### `/gd claim debug`