Причина: ConfigManager.getGuiItem() читал material через Material.getMaterial() и при любом нераспознанном имени (minecraft:player_head, опечатка, отсутствующий ключ) молча подставлял Material.STONE — предмет вкладки античита рисовался обычным блоком без единой записи в лог. - ConfigManager: материал через Material.matchMaterial (принимаются minecraft:player_head и любой регистр), неизвестный/пустой материал больше не превращается в STONE — пишется предупреждение в консоль и берётся осмысленный материал по умолчанию; предупреждение о ненастроенном gui.items выдаётся один раз за сессию - новый пакет gui/item: AnticheatItems, ReportItems, PlayerHeads, EntrySlots — голова всегда получает профиль игрока (без профиля клиент рисует блок), записи раскладываются по свободным строкам, нижний ряд 45-53 зарезервирован под кнопки, пересечений слотов больше нет - тексты фолбэка GUI перенесены из кода в config.yml/messages.yml - цвета переведены на Adventure (TextFormat), org.bukkit.ChatColor убран - PostgreSQL: player_uuid передаётся как UUID — детальный вид античита и сводка в причине репорта падали с "operator does not exist: uuid = character varying" - бинарь собирается под Paper 26.1.2 / Java 25 (paper-api 26.1.2; константы Enchantment.DURABILITY и ARROW_DAMAGE в этой версии больше не существуют) - в списке репортов появилась кнопка вкладки античита (anticheat_open) - тесты: MaterialParsingTest, EntrySlotsTest, TextFormatTest
73 lines
3.1 KiB
YAML
73 lines
3.1 KiB
YAML
# LoReport messages
|
|
# You can edit these to change plugin messages without recompiling
|
|
# Color codes: &0-9, &a-f, &k-o, &r
|
|
|
|
# General
|
|
console-only: "&cThis command is for players only!"
|
|
no-permission: "&cYou don't have permission to use this command!"
|
|
usage: "&eUsage: /report <player> <reason> [screenshot_url] | /report gui | /report stats <player> | /report image <id> <url> | /report ac"
|
|
|
|
# Reporting
|
|
report-sent: "&aReport sent successfully!"
|
|
already-reported: "&cYou have already reported this player!"
|
|
self-report: "&cYou cannot report yourself!"
|
|
player-not-found: "&cPlayer not found!"
|
|
reason-too-long: "&cReason is too long! Maximum %max% characters."
|
|
max-reports-reached: "&cYou have reached the maximum number of reports for this player!"
|
|
cooldown: "&cPlease wait %time% seconds before your next report!"
|
|
invalid-report-id: "&cInvalid report ID."
|
|
report-not-found: "&cReport with this ID not found."
|
|
report-image-updated: "&aImage for report #%id% updated."
|
|
|
|
# Admin notifications
|
|
admin-notification: "&6[LoReport] &eNew report from &f%reporter% &eon &f%reported%: &7%reason%"
|
|
|
|
# Report status
|
|
report-status-changed: "&aReport #%id% status changed to: %status%"
|
|
report-image-added: "&aScreenshot added to report #%id%"
|
|
report-image-usage: "&eUsage: /report <player> <reason> [screenshot_url]"
|
|
report-image-url-usage: "&eUsage: /report image <id> <url>"
|
|
status-pending: "&cPending"
|
|
status-reviewing: "&eReviewing"
|
|
status-resolved: "&aResolved"
|
|
status-dismissed: "&7Dismissed"
|
|
|
|
# GUI
|
|
gui-title: "Reports - Page %page%"
|
|
gui-title-detail: "&8Report #%id%"
|
|
teleported-to: "&aTeleported to %player%"
|
|
player-offline: "&cPlayer %player% is offline"
|
|
screenshot-link: "&aScreenshot: &e%url%"
|
|
|
|
# GUI fallback entries (used when gui.items.<name> is not configured)
|
|
report-entry-name: "&c%target_name%"
|
|
report-entry-reporter: "&eBy: &f%reporter_name%"
|
|
report-entry-reason: "&eReason: &f%reason%"
|
|
report-entry-time: "&eTime: &f%time%"
|
|
report-entry-status: "&eStatus: &f%status%"
|
|
report-entry-server: "&eServer: &f%server%"
|
|
report-entry-reports: "&eReports: &c%report_count%"
|
|
anticheat-entry-name: "&c%player_name%"
|
|
anticheat-entry-flags: "&eFlags (%hours%h): &c%flag_count%"
|
|
anticheat-entry-last-flag: "&eLast flag: &f%last_flag%"
|
|
anticheat-entry-reports: "&eReports: &c%report_count%"
|
|
anticheat-detail-name: "&c%player_name%"
|
|
anticheat-detail-reports: "&eReports: &c%report_count%"
|
|
anticheat-detail-flag: "&8- &f%check% &7(%server%, %time%) &8%detail%"
|
|
|
|
# Stats
|
|
online-status: "&aOnline now"
|
|
no-reports: "&eThis player has no reports."
|
|
stats-header: "&6=== Report stats: %player% ==="
|
|
stats-count: "&eTotal reports: &f%count%"
|
|
stats-last-online: "&eLast online: &f%time%"
|
|
stats-report-entry: "&7- %reason% &8(%time% ago)"
|
|
stats-recent-header: "&7Recent reports:"
|
|
stats-more-reports: "&7... and %count% more reports"
|
|
|
|
# Anticheat (ServGuard)
|
|
anticheat-summary: "&8[&cAC&8] &7flags %hours%h: %checks%"
|
|
anticheat-unavailable: "&eAnticheat data is not available on this server."
|
|
anticheat-list-title: "Anticheat - Page %page%"
|
|
anticheat-detail-title: "&8Flags: %player_name%"
|
|
anticheat-detail-empty: "&eNo recent flags for this player."
|