Обложка Report System

Report System

Плагин системы отчетов для сервера Velocity с интеграцией ботов

xap3y · ModrinthОбновлено 115 скачиваний
Скачать
Следить за обновлениями

Обновления публикации

Войдите, чтобы получать обновления в аккаунте, на почту или на устройство.

Войти и подписаться

Реакции сообщества

Помогают подбирать рекомендации

Выберите реакцию

О ресурсе

Около 7 мин чтения

⁇ ️ Система отчетности для скорости

Мощное, высокопроизводительное решение для отчетности для прокси-серверов Velocity, легко интегрируемое с Discord и MariaDB.. Этот плагин устраняет разрыв между сервером Minecraft и командой сотрудников, создавая выделенные каналы Discord для каждого отчета.


⁇ Ключевые особенности

  • Интеграция диссонанса: Автоматически создается уникальный текстовый канал для каждого нового отчета.
  • Веб-транскрипты: Создавайте и размещайте профессиональные стенограммы чата (включая медиа/изображения), когда отчет закрыт.
  • Продвинутое ограничение ставок: Предотвращение спама с помощью системы «Greedy Token».
  • Полностью настраиваемый: Каждое сообщение, звук и узел разрешения могут быть отредактированы в config.yml.
  • Защита персонала: Дополнительные настройки, чтобы игроки не сообщали об администраторах.
  • Cross-Server Sync: Как плагин Velocity, он обрабатывает отчеты по всей сети.

⁇ ️ Установка и требования

Pre-requisites

  1. База данных MariaDB: Требуется для постоянного хранения данных.
  2. Диссон Бот: Зарегистрированное заявление на Портал разработчиков Discord.
  3. Сервер Discord

Руководство по установке

  1. Настройка бота: Создайте бота на портале Discord, сбросьте маркер и скопируйте оба Token и Идентификатор.
  2. Разногласия: Создайте категорию, в которой бот будет создавать каналы отчетов и определенный канал для вашего сайта. Аудиторский журнал.
  3. Начальный забег: Поместите плагин в свою скорость plugins папка и запуск сервера для генерации конфигурации по умолчанию.
  4. Configuration: * Введите свои учетные данные MariaDB.
    • Заполнить в discord-bot раздел (Token, Guild ID, Category ID и т.д.).
  5. Restart: Перезагрузите прокси для инициализации подключения бота и базы данных.

⁇ Настройка транскриптов

Чтобы включить веб-транскрипты для закрытых отчетов:

  1. Создайте API-ключ в space.xap3y.eu.
  2. In config.ymlустановленный discord-bot.transcripts.enabled to true.
  3. Вставьте свой ключ в key и media-save-api-key.
  4. (Optional) Включать save-media архивировать изображения/видео, отправленные по каналу Discord.
Preview

Discord transcript


⁇ ️ Команды и разрешения

Игровые команды

Command Description Permission
/report <player> <reason> Представить новый доклад Дефолт (или reports.report)
/reports Откройте список управления отчетом None
/reports view-open Посмотреть собственные открытые отчеты None

Персонал и административные команды

Command Description Permission
/reports reload Перезагрузка конфигурационных и языковых файлов reports.reload
/reports info <id> Посмотреть подробные данные reports.info
/reports close <id> Закрыть активный отчет reports.close
/reports delete <id> Удалить отчет из базы данных reports.delete
/reports admin view-open Посмотреть все открытые отчеты в сети reports.admin.view
/reports admin view-closed Посмотреть все закрытые отчеты в сети reports.admin.view
/reports admin view-player sent <p> [status] Просмотр отчетов, которые прислал конкретный игрок reports.admin.view
/reports admin view-player received <p> [status] Просмотр отчетов, поданных против конкретного игрока reports.admin.view
/reports admin ban-session <p> Блокировать игрока от использования /report reports.admin.ban
/reports admin unban-session <p> Восстановление способности игрока сообщать reports.admin.ban

Функциональный запрос

Создайте проблему, используя ссылку отслеживания проблем и кратко опишите, что вы хотели бы добавить


⁇ ️ Предварительный просмотр конфигурации
prefix: "&7[&cReports&7] &r"

enabled: true

require-permission: false # Permission: reports.report

notify-sound: "entity.experience_orb.pickup"
notify-sound-source: "MASTER"
notify-on-join: true
notify-delay-seconds: 5
announce-solved: true # Reply to reporter when their report is closed
max-open-reports: 10 # Max open reports per player, set to 0 for unlimited
reports-per-page: 5 # Number of reports to show per page in the /reports
protect-staff: true # Prevent players from reporting staff members
protect-permission: "reports.protect" # Permission to bypass staff protection

# Live website control portal. The API key falls back to discord-bot.transcripts.key when blank.
# This key is different from transcripts key!!!
portal:
    enabled: false
    debug: false # Logs WebSocket details including the API key; disable after troubleshooting
    websocket-url: "wss://call.xap3y.eu/ws/mc-reports"
    user-agent: "ReportSystem/{version}"
    api-key: "" # Message me on discord for key: xap3y
    reconnect-seconds: 10

close-comment-required: false # Require a comment when closing a report
min-close-comment-length: 10 # Minimum length for close comment

# Rate limit /report command?
rate-limit: # refillGreedy
    enabled: true
    time-seconds: 180 # Time to refill in seconds
    tokens: 5 # Max reports allowed in the time above
    refill-tokens: 5 # Number of tokens to refill after each time
    can-bypass: true
    bypass-permission: "reports.bypassratelimit"

# Limit how often one reporter can report the same player.
same-player-rate-limit:
    enabled: true
    max-reports: 1
    time-seconds: 600 # 10 minutes

discord-bot:
    log-startup: true # Log startup to discord audit log channel
    token: "EXAMPLE_TOKEN"
    guild-id: 1111111111111111111 # Discord server ID
    channel-id: 1111111111111111111 # Audit log channel
    app-id: 1111111111111111111 # Discord app ID
    category-id: 1111111111111111111 # Category for report channels
    use-topic: false
    channel-topic: "topic" # {open} | {closed} | {total}
    activity: "ReportSystem v{version}" # Discord presence
    channel-template: "report-{reporter}" # {reporter}, {target}, {id}
    channel-message: "|| <@&ROLE_ID> ||" # Message to be sent in the report channel
    suppress-notifications: false # Send with @silent
    send-chat-history: true
    chat-history-messages-per-page: 20

    admin-role-ids:
        - 1111111111111111111
        - 2222222222222222222

    transcripts:
        enabled: false
        url: "https://call.xap3y.eu/v1/discord/transcript/upload"
        url-get: "https://space.xap3y.eu/mc/report/"
        url-get-ending: "?ref=test"
        key: "example_key" # Generate here: https://space.xap3y.eu/mc/report/get-key
        media-save-api-key: "example_key" # Same key as above
        file-save: false # Save a local copy of the transcript file
        save-attachments: true # Save all Discord attachments before their CDN links expire
        media-save-api: "https://call.xap3y.eu/v1/image/upload/url"
        user-agent: "ReportSystem/1.5.0"
        media-timeout: 10 # HTTP timeout in seconds for attachment upload
        res-json-template: "/message/urlSet/rawUrl" # Json template to extract url from space api, dont change

database:
    host: "localhost"
    port: 3306
    database: "reports_db"
    username: "reports_user"
    password: "securepassword"
    max-pool-size: 10
    minIdle: 2

    pool-refresh: true # Refresh the connection pool every 30 minutes
    refresh-interval: 600000 # milliseconds (10 minutes) - how often to refresh current open reports from the database

lang:
    only-player: "&cThis command can only be executed by a player."
    no-permission: "&cYou do not have permission to execute this command."
    reload: "&aConfiguration reloaded successfully."
    plugin-disabled: "&cReportSystem is currently disabled."
    fail: "&cAn error occurred while processing your request."
    report-usage: "&cUsage: /report <player> <reason>"
    report-success: "&aYou have successfully reported &c{target}."
    report-yourself: "&cYou cannot report yourself."
    report-cooldown: "&cYou are on cooldown. Please wait and try again later."
    report-rate-limit: "&cYou're doing that too fast. Try again in {sec} seconds."
    report-same-player-rate-limit: "&cYou have reported this player too many times recently. Try again in {minutes} minutes."
    report-announce: "&c{reporter} &ahas reported &c{target} &afor &c{reason}&a."
    report-join-notify: "&cThere are &e&l{count} &r&copened reports!"
    report-max-reports: "&cYou cannot have more than &f{max} &copen reports at the same time."
    report-no-reason: "&cWrong usage! &f/report <player> <reason>"
    report-no-player: "&cWrong usage! &f/report <player> <reason>"
    player-not-found: "&cPlayer &cnot found."
    report-close-no-id: "&cWrong usage! &f/reports close <id> [reason]"
    report-close-no-reason: "&cYou must provide a reason for closing the report. &f/reports close <id> <reason>"
    report-delete-no-id: "&cWrong usage! &f/reports delete <id>"
    report-info-no-id: "&cWrong usage! &f/reports info <id>"
    report-not-found: "&cReport with ID &f{id} &cnot found."

    report-already-closed: "&cReport with ID &f{id} &cis already closed."
    report-closed: "&aYou have successfully closed report ID &c{id}"
    report-close-discord-error: "&cAn error occurred while closing the report in Discord."
    report-deleted: "&aYou have successfully deleted report ID &c{id}"
    report-delete-discord-error: "&cAn error occurred while deleting the report in Discord."
    report-already-deleted: "&cReport with ID &f{id} &cis already deleted."
    no-reports-found: "&cNo reports found."
    closed-reports-header: "&cClosed Reports"
    report-ban: "&cYou cannot submit a report."
    report-ban-already: "&cYou are already banned &f{player}&c from submitting reports."
    report-unban-already: "&cPlayer &f{player}&c is not banned from submitting reports."
    report-ban-success: "&aYou have successfully banned &f{player}&a from submitting reports."
    report-unban-success: "&aYou have successfully unbanned &f{player}&a from submitting reports."
    report-close-reason-too-short: "&cThe close reason must be at least &f{min} &ccharacters long."
    open-reports-header: "&aOpen Reports"
    new-report: "New Report"
    page: "Page"
    time: "Time"
    reason: "Reason"
    reported-player: "Reported Player"
    reported-by: "Reported By"
    closed-by: "Closed By"
    deleted-by: "Deleted By"
    report-is-closed: "Report Closed"
    report-is-deleted: "Report Deleted"
    closed-at: "Closed At"
    comment: "Comment"
    view: "View"
    prev: "Prev"
    next: "Next"
    close-report: "Close Report"
    close-reason: "Close Reason"
    close-reason-lore: "Reason for closing the report (optional)"
    close-report-lore: "Click to close this report."
    report-solved-announce: "&aYour report with ID &c{id} &ahas been closed."
    report-solved-details-button: "view"
    report-solved-details-hover: "&7Close reason: &e{reason}\n&7Closed by: &e{closer}\n&7Closed at: &e{time}"
    report-solved-no-reason: "No reason provided"
    report-solved-unknown-closer: "Unknown"
    report-solved-unknown-time: "Unknown"
    page-out-of-range: "&4Internal error: Page number out of range."
    report-protected: "&cYou cannot report this player."

    # Discord Locale
    no-permission-button: "You do not have permission to interact with this button."
    no-permission-modal: "You do not have permission to submit this form."
    no-permission-command: "You do not have permission to execute this command."
    close-button: "Close"
    delete-button: "Delete"
    chatlog-title: "Chat Log"
    chatlog-empty: "No chat history is available for this report."
    delete-btn-save-no-reason: "Save Transcript (No Reason)"
    delete-btn-save-reason: "Save Transcript (With Reason)"
    delete-btn-no-save-no-reason: "Delete Only (No Reason)"
    delete-btn-no-save-reason: "Delete Only (With Reason)"
    delete-btn-cancel: "Cancel"
    delete-prompt: "Are you sure you want to delete report #{id}?\nPlease select an option below:"
    delete-cancelled: "Cancelled deletion."
    delete-reason-lore: "Reason for deleting the report"
    delete-report: "Delete Report"
    delete-reason: "Delete Reason"

Файлы и версии

0 файлов

Версии проекта

Все доступные выпуски, включая предыдущие версии Minecraft

Обсуждение ресурса

Вопросы по установке, совместимости и использованию

Обсуждение ещё не началось. Задайте первый вопрос.

Войти и обсудить

Оценки пользователей

Пока без оценок

Следующая версия — на вашей почте

Письма только об обновлениях этой публикации.

Подписка после подтверждения почты в аккаунте.

Войти в сообщество

Код для входа придёт на почту

Отправим одноразовый код на вашу почту

Поиск по каталогу

Введите название мода, плагина или сборки

Быстрый просмотр

Загружаем публикацию