introduce new player compare predicate #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey there, first off. love the plugin, it's quite dynamic and powerful!
In the spirit of making it even better, I have came up with a new type of predicate that allows admins to specify a certain predicate that gets ran against source and target, and if they both return the same thing, the target is allowed to receive the message, this will allow for even more dynamic setups, like dynamic guild chats (or world chat written a different way). Below is an example:
The compare predicate can be whatever predicate there is, whether builtin or mod provided, making this expression quite flexible. You could also use this to compare LP meta between users.
I tried this locally with 2 clients and it worked quite well.