Class ConflictingPermissionsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.jorel.commandapi.exceptions.ConflictingPermissionsException
All Implemented Interfaces:
Serializable

public class ConflictingPermissionsException extends RuntimeException
An exception caused when the same permission is registered to a command
See Also:
  • Constructor Details

    • ConflictingPermissionsException

      public ConflictingPermissionsException(String command, CommandPermission currentPermission, CommandPermission conflictingPermission)
      Creates a ConflictingPermissionsException
      Parameters:
      command - the command that has conflicting permissions
      currentPermission - the permission that already exists on this command
      conflictingPermission - the permission that was tried to be assigned to the command