mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 14:21:56 +00:00
40eaa9ea07
This completes and fully enables a new feature called "Conditions" We already had some forms of conditions built into @Flags such as on the Player for itemheld. However, letting end users add additional restrictions to existing context handlers such as players is not possible without redefining the context. That's not friendly nor scalable. Flags will now be primarily only for controlling how to resolve a context, and then Conditions will then be the way to validate the context and trigger a failure if the condition is not met. Conditions can be placed on Command Class, Methods, or individual Parameters.