-
-
Notifications
You must be signed in to change notification settings - Fork 1
Creating Restrictions
TehBrian edited this page Aug 23, 2022
·
2 revisions
- 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.