-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExpressionPropertyCondition #7612
Comments
Thanks for the issue. I don't think I see the value in this over registering a propertycondition using Skript#registerCondition (or registry api). |
@Pikachu920 |
It seems like the shortcut here is avoiding writing the patterns manually. I think I'd rather see these classes manually write the patterns rather than extend a special class. Even if we want to avoid writing the patterns, that can be done by adding a method to get the patterns from the property and expression. I also feel it is undesirable to have |
I agree, this seems like a lot for what could be a simple static helper method. |
Well, I didn't have a good name for it, that's why I had put
That is a good alternative, I'm fine with just adding a new method within |
I'd really rather not even have the method. If I was reading this code, I'd prefer to see this pattern written out instead of using a helper method. It's easy to understand with something very simple like |
Suggestion
Add an
ExpressionPropertyCondition
class (or different name)Allowing to quickly register a condition that utilizes property of a type/object/expression and the property for the condition.
register(Example.class, PropertyType.BE, "visible", "custom name[s]", "entities")
or whichever order.Resulting in patterns of
Why?
Useful
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: