To use these compounds in checkitem you would do as follows:
%checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=ArmoryKey%
==
Once you have established a working placeholder, in this case we will use %checkitem_nbtstrings:executableitems:ei-id=ArmoryKey%
The placeholder above will return a yes or no value ||Based on PAPI config||
You can remove the item by adding _remove directly after checkitem, as such: %checkitem_remove_nbtstrings:executableitems:ei-id=ArmoryKey%
BE CAREFUL, parsing this placeholder in any way will remove ALL ArmoryKey from the user's inventory!
You can add an amount modifier (amt:#) as such: %checkitem_remove_nbtstrings:executableitems:ei-id=ArmoryKey,amt:2%
This will remove 2 ArmoryKey from the user it is parsed for.
Checkitem Information: https://helpch.at/placeholders#checkitem
==
Here is a working example for DeluxeMenus
click_requirement:
requirements:
haskey:
type: string equals
input: '%checkitem_nbtstrings:executableitems:ei-id=ArmoryKey,amt:1%'
output: 'yes'
deny_commands:
- '[message] Get 1 Armory Key, fool'
click_commands:
- '[console] ei take %player_name% ArmoryKey 1 '
- '[message] You used 1 Armory Key'
- '[console] minecraft:give %player_name% diamond 1'
- '[message] You received 1 diamond'