Creating Restrictions - TehBrian/RestrictionHelper GitHub Wiki
- Make a new class that extends Restriction.
- Implement Restriction#check using the API of whatever plugin you're writing against.
- Add the @RestrictionInfo annotation to your class with the relevant information.
And you're done!
Check out the built-in WorldGuard and PlotSquared restrictions for some example code.