def priority(n=0):
    """
    Sets the priority of the plugin.
    Higher values indicate a higher priority.
    This should be used as a decorator.
    Returns a decorator function.
    :param n: priority (higher values = higher priority)
    :type n: int
    :rtype: function
    """
    def wrapper(cls):
        cls._plugin_priority = n
        return cls
    return wrapper