Item Condition
The Item condition allows you to create placeholders that display different text based on whether a player has a specific item in their inventory.Overview
This condition is perfect for creating item-based rewards, quest completion indicators, or special item holder statuses.Configuration
To create an item condition, set the type toITEM and configure the item properties.
Basic Example
- Players without the item see: “No special item”
- Players with the item see: “Example condition text”
Item Properties
Material (Required)
The material of the item. You can view a list of all available materials in the Bukkit Material enum. Example:Name (Optional)
The display name of the item. Supports color codes ifcolors is enabled.
Example:
Lore (Optional)
The lore of the item as a string list. Supports color codes ifcolors is enabled.
Example:
Colors (Optional)
If set totrue, color codes like &a are translated and displayed in color.
Default: false
Example:
Complete Example
Here’s a full example with all options:Real-World Examples
Quest Item Holder
Special Weapon Holder
VIP Token Holder
Matching Behavior
The item condition checks if the player has an item that matches:- The specified material
- The specified name (if provided)
- The specified lore (if provided)
Tips and Best Practices
- Be specific - Use name and lore to make items unique and prevent false matches
-
Use colors - Enable
colors: trueto make items more visually distinct - Test thoroughly - Make sure the item matching works as expected with your specific items
- Combine conditions - You can combine item conditions with permission, money, or group conditions
Troubleshooting
Q: The condition isn’t matchingA: Make sure:
- The material name is correct (case-sensitive)
- If you specified a name, it matches exactly (including color codes)
- If you specified lore, all lines match exactly
- The player actually has the item in their inventory
A: Make sure
colors: true is set in your condition configuration.
Related Guides
- Conditions Overview - Learn about all condition types
- Permission Condition - Permission-based conditions