-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for item flags on dropped items
Adds support for adding item flags https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html to item drops. Formatting for flags is very specific, please see usage below: ```yaml # Example without any flags, showing enchantment and name/lore specifications drop: diamond_sword@!unbreaking#2!sharpness#3!~name?;lore?;no flags # Example with hide enchant and hide attributes flags, showing usage with enchantments and custom name/lore drop: diamond_sword@hide_enchants;HIDE_ATTRIBUTES;unbreaking#2!sharpness#3!~name?;lore?;testing attribute in lore;hide_enchants``` Important notes: Item flags **MUST** be defined **before** all item *enchantments, custom name, and lore* specifications, and must be separated with a `;` which is also now **required before** the enchantment/name string begins.
- Loading branch information
1 parent
e00ad3a
commit 96aab5f
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
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
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
96aab5f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves #45