@Override
    public int compareTo(ActionHook other) {
        if (other == null) {
            return 1;
        }
        if (this.getPriority() > other.getPriority()) {
            return -1;
        } else if (this.getPriority() == other.getPriority()) {
            return 0;
        } else {
            return 1;
        }
    }