Interface IPlayerPermissionSystemRegisterAPI


public interface IPlayerPermissionSystemRegisterAPI
The API for registering player permission system implementations.

Player permission system implementations must be registered during the xaero.pac.common.event.api.OPACServerAddonRegister.EVENT on Fabric or OPACServerAddonRegisterEvent on Forge.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers a player permission system implementation to be available to OPAC under a specified name.
  • Method Details

    • register

      void register(@Nonnull String name, @Nonnull IPlayerPermissionSystemAPI system)
      Registers a player permission system implementation to be available to OPAC under a specified name.

      The actual permission system used by the mod is configured in the main server config file with the "permissionSystem" option.

      Parameters:
      name - the name to register the permission system under, not null
      system - the permission system implementation, not null