Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:showitem:config [2020/12/13 23:29] – created phoenix616 | plugin:showitem:config [2021/10/14 17:30] (current) – phoenix616 | ||
---|---|---|---|
Line 1: | Line 1: | ||
# Config | # Config | ||
- | This plugin | + | ShowItem |
- | Almost all aspects about the plugin (settings and messages) can be changed in the [config.yml](https:// | + | Almost all aspects about the plugin (settings and messages) can be changed in the [config.yml](https:// |
The other yml files ([transmapping.yml](http:// | The other yml files ([transmapping.yml](http:// | ||
+ | |||
+ | ## Item Blocker | ||
+ | |||
+ | You can define which items players are able to show and which not. These settings can be defined in the " | ||
+ | |||
+ | <code yaml> | ||
+ | # Block certain items from getting shown. | ||
+ | # Can be bypassed with showitem.blockbypass and showitem.blockbypass.< | ||
+ | block: | ||
+ | # Whether or not this match is inverted (match only items that don't match the values) | ||
+ | inverted: false | ||
+ | | ||
+ | # List of materials to block | ||
+ | # Materials: https:// | ||
+ | material: [] | ||
+ | # - STONE | ||
+ | # - DIAMOND_SWORD | ||
+ | |||
+ | # Block items with certain strings in their names from getting shown (case-insensitive) | ||
+ | # r= prefix indicates that the string should be handled as a regex | ||
+ | name: [] | ||
+ | # - "name 1" | ||
+ | # - " | ||
+ | |||
+ | # Block items with certain strings in the lore from getting shown (case-insensitive) | ||
+ | # r= prefix indicates that the string should be handled as a regex | ||
+ | lore: [] | ||
+ | # - "name 1" | ||
+ | # - " | ||
+ | |||
+ | # Item durability value, can use comparators, | ||
+ | # An empty string matches all durabilities | ||
+ | # Also supports chaining of comparators with a comma. E.g. > | ||
+ | durability: "" | ||
+ | |||
+ | # Block items with the unbreakable tag | ||
+ | unbreakable: | ||
+ | |||
+ | # Block items with certain enchantments, | ||
+ | # Names: https:// | ||
+ | # Can take the same comparators as the durability for the level | ||
+ | enchantments: | ||
+ | # - " | ||
+ | # - " | ||
+ | |||
+ | # Serialize the item to YAML and filter it with regex. | ||
+ | # This is only for advanced users and is less efficient, leave empty to disable. | ||
+ | serialized: "" | ||
+ | |||
+ | specific: | ||
+ | # Block only specific items that match certain block types. All global types can be used. | ||
+ | # Can by bypassed with showitem.blockbypass.specific.< | ||
+ | special-sword: | ||
+ | material: | ||
+ | - DIAMOND_SWORD | ||
+ | name: | ||
+ | - " | ||
+ | unbreakable: | ||
+ | enchantments: | ||
+ | - " | ||
+ | # Add multiple matcher, e.g. an inverted matcher that | ||
+ | # blocks everything that isn't in this matcher | ||
+ | # inverted-match: | ||
+ | # | ||
+ | # | ||
+ | # - WRITTEN_BOOK | ||
+ | |||
+ | </ | ||
+ | |||
+ | By default only an example category is defined to block something (which shouldn' | ||
+ | |||
+ | If you want certain players to bypass these blocks then you can use the `showitem.blockbypass` permission to allow bypassing of all blocks or the `showitem.blockbypass.specific.< |