Fzzy Config

@WithPerms

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 config
public class MyConfig extends Config {
//constructor goes here
@Override
public 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 it
public int mySpecialField = 2;
}