GriefPrevention Compatibility
zPorto opened this issue ยท 7 comments
Could you add compatibility with GriefPrevention?
So the players could do the /clan war and all this stuff?
Thanks!
A lot of servers use both Simple Clans and GriefPrevention. Would be fun if during War the claims of all clan members from both sides are given ContainerTrust to the enemy clan members so it would be possible to invade and raid without breaking the safety of claims.
That is something the dev from Grief Prevention would need to code in using the SimpleClans api just like PreciousStones is set up to do.
@RoinujNosde Not sure how you want to implement this, but this can be done without needing an extra event in GP - just check if an interact event was canceled within a claim from a player who does not have container access. That way you won't have to modify claim trust lists or etc. at all.
@RoboMWM I think this custom event will make the code cleaner, something like:
onTrustChange():
if changer isAtWarWith(identifier) && isPermissionTaken:
send message;
cancel;
Yea that's true, forgot about that.
Really wish the events had like a "notify" field for canceling.
But now that you mentioned the interact event, it makes sense using it if I were to add compatibility with other protection plugins.
Although un-cancelling this event will probably have the side effect of the player still getting messages like "You don't have rj's permission to do that".