getPermissionDefault

Gives the default default state of permissions registered for the plugin.

  • If not specified, it will be OP.
  • It is matched using getByName
  • It only affects permissions that do not define the default node.
  • It may be any value in PermissionDefault.

In the plugin.yml, this entry is named default-permission.

Example:

default-permission: NOT_OP

Return

the default value for the plugin's permissions