Sets a permission requirement for a setting or class. All configs have a default permission level (2+ normally), this modifies the perms of individual settings or the whole config.
// changing the permission levels of an entire configpublic class MyConfig extends Config {//constructor goes here@Overridepublic int defaultPermLevel() {return 4; // default is 2, this sets the default perm level to 4 (owner). WithPerms on the class could also be used.}@WithPerms(opLevel = 2) // this field is ok to be perm level 2 still, specially set itpublic int mySpecialField = 2;}
Heads up!
See the documentation page here 🗗