Requirements and logic
Requirements and logic
Requirements control whether a menu, button, or action is available. They are commonly used for permissions, economy balances, placeholders, item state, and other server conditions.
requirements:
- "%vault_eco_balance% >= 500"
If a requirement always fails, enable /ydm debug, reproduce the issue, and inspect the resolved placeholder value and comparison in the console. Confirm that the required integration is installed and that the placeholder returns the expected type.
Use requirements with Action packages to keep validation and success/failure behavior reusable.