Aller au contenu principal

Bug Report Manifest

Manifest entry centralizing every configuration knob for the bug report system. Each manifest runs its own isolated report system with its own command, storage and categories.

Commands

The command is registered through the engine's command system and follows reloads automatically.

CommandPermissionDescription
/{commandName}Opens the category selection dialog
/{commandName} mineLists the player's own reports
/{commandName} list [player]adminPermissionLists recent reports, optionally filtered by player
/{commandName} status <id> <statusId>adminPermissionMoves a report to another status
/{commandName} delete <id>adminPermissionDeletes a report

Configuration

FieldTypeDefaultDescription
commandNameString""Command name to open this bug report system (e.g. report, bugreport, ticket)
serverNameString""Name displayed when referencing this server in reports
sequenceStorageRef<Artifact>Artifact storing the reports and the ID sequence
selectMenuTitleString"Select Category"Title of the category selection dialog
selectMenuBodyString"Choose a category for your report:"Body text of the selection dialog
submitButtonTextString"Submit"Text on the submit button
categoryLayoutLinesInt1Lines of categories in the selection menu
maxReportsPerPlayerInt0Maximum reports each player may keep (0 = unlimited)
submissionCooldownInt0Cooldown in seconds between two submissions
notifyPermissionString"bugreport.notify"Permission receiving staff notifications on new reports
adminPermissionString"bugreport.admin"Permission for the list/status/delete subcommands
statusesList<BugReportStatus>open, in_progress, resolved, closedStatuses a report can be moved through
categoriesList<BugReportCategory>[]Categories shown to players, each with its own form inputs
messagesBugReportMessagesPlayer facing messages
webhookBugReportWebhookSettingsDiscord webhook delivery configuration
discordCommandsBooleanfalseRegister Discord slash commands (list/status/delete) for this system
discordAdminRoleIdsList<String>[]Discord role IDs allowed to use the slash commands (empty = server administrators only)

Statuses

Each status has an id, a displayName, a description and a sendNotification flag — when true, the reporter is notified in game when their report enters this status. The first status of the list is the default for new reports.

Validation

Submissions are refused with the corresponding configurable message when the cooldown is active, the per-player limit is reached, or a text input is shorter than its minLength.

Discord Slash Commands

When discordCommands is enabled and the bot (from the Discord link manifest) is connected, /{commandName} list|status|delete become available in Discord with ephemeral replies, restricted to discordAdminRoleIds (or server administrators when the list is empty).