Tags
Creators
Details
2.1.0
Compatibility
Changes
Changelog
[2.1.0] - 2026-01-09
✨ New Features
- Multi-language Support: Added ability to switch languages in
config.yml. Pre-installed languages: English (en) and Russian (ru). - Discord Webhook Templates: Completely redesigned Discord notifications.
- Added
discord.ymlfor fully customizable webhook templates. - Notifications now use rich Embeds with titles, descriptions, footers, and timestamps.
- Added support for hex colors and placeholders.
- Added
- Tab Completion: Added smart auto-completion for
/agscommand (subcommands and player names). - Mechanism Protection: Added protection against restricted items being used by Redstone mechanisms (Dispensers/Droppers). Discord notifications now include coordinates of the suspicious mechanism.
- Modern Formatting: Full support for MiniMessage (RGB gradients, clickable text, hover events) instead of legacy color codes.
🛠️ Key Changes
- Java 21: Project updated to support Java 21 and Paper 1.21.1 API.
- Thread Safety: Fixed critical threading issues in DatabaseManager that could cause server crashes.
- Optimization: Prepared HikariCP integration for better database performance.
⚠️ Migration Guide (v1.x -> v2.1.0)
This update introduces BREAKING CHANGES to configuration files. Please follow these steps to migrate safely:
- Backup: Make a backup of your
plugins/AntiGriefSystemfolder and your database (database.db). - Delete
messages.yml: The oldmessages.ymluses legacy color codes (&a,&c) which are no longer supported. You must delete this file.- Note: The plugin will generate new
messages_en.ymlandmessages_ru.ymlfiles automatically.
- Note: The plugin will generate new
- Update
config.yml:- Add the
languageoption to yourconfig.yml:# Language: en or ru language: en - Alternatively: You can delete
config.ymlto let the plugin regenerate it with new defaults.
- Add the
- Configure Discord:
- A new file
discord.ymlwill be created. You can customize the look and feel of your Discord notifications there. - Ensure your
discord-webhook-urlinconfig.ymlis correct.
- A new file
Common Issues
- "Missing message: key": This means you are using an old language file. Delete
messages.ymland restart. - Colors not working: Ensure you are using MiniMessage format (e.g.,
<red>,<gradient:red:blue>) instead of&codes.
Список изменений (на русском)
[2.1.0] - 2026-01-09
✨ Новые функции
- Мультиязычность: Добавлена возможность переключения языков в
config.yml. Предустановленные языки: Английский (en) и Русский (ru). - Шаблоны вебхуков Discord: Полностью переработаны уведомления в Discord.
- Добавлен файл
discord.ymlдля полной настройки шаблонов вебхуков. - Уведомления теперь используют красивые Embed-сообщения с заголовками, описанием, футером и временной меткой.
- Добавлена поддержка HEX-цветов и плейсхолдеров.
- Добавлен файл
- Автоподсказки (Tab Completion): Добавлено умное автодополнение для команды
/ags(подкоманды и ники игроков). - Защита механизмов: Добавлена защита от использования запрещенных предметов через редстоун-механизмы (Раздатчики/Выбрасыватели). Уведомления в Discord теперь содержат координаты подозрительного механизма.
- Современное форматирование: Полная поддержка MiniMessage (RGB-градиенты, кликабельный текст, наведение) вместо устаревших цветовых кодов.
🛠️ Ключевые изменения
- Java 21: Проект обновлен для поддержки Java 21 и API Paper 1.21.1.
- Потокобезопасность: Исправлены критические ошибки многопоточности в DatabaseManager, которые могли приводить к падению сервера.
- Оптимизация: Подготовлена интеграция HikariCP для лучшей производительности базы данных.
⚠️ Руководство по миграции (v1.x -> v2.1.0)
Это обновление вносит КРИТИЧЕСКИЕ ИЗМЕНЕНИЯ в файлы конфигурации. Пожалуйста, следуйте инструкции для безопасного перехода:
- Бэкап: Сделайте резервную копию папки
plugins/AntiGriefSystemи вашей базы данных (database.db). - Удалите
messages.yml: Старый файлmessages.ymlиспользует устаревшие цветовые коды (&a,&c), которые больше не поддерживаются. Вы должны удалить этот файл.- Примечание: Плагин автоматически сгенерирует новые файлы
messages_en.ymlиmessages_ru.yml.
- Примечание: Плагин автоматически сгенерирует новые файлы
- Обновите
config.yml:- Добавьте опцию
languageв вашconfig.yml:# Language: en or ru language: en - Альтернативный вариант: Вы можете удалить
config.yml, чтобы плагин сгенерировал его заново с новыми настройками по умолчанию.
- Добавьте опцию
- Настройте Discord:
- Будет создан новый файл
discord.yml. В нем вы можете настроить внешний вид уведомлений Discord. - Убедитесь, что ваш
discord-webhook-urlвconfig.ymlуказан верно.
- Будет создан новый файл
Частые проблемы
- "Missing message: key": Это означает, что вы используете старый файл языков. Удалите
messages.ymlи перезагрузите сервер. - Цвета не работают: Убедитесь, что вы используете формат MiniMessage (например,
<red>,<gradient:red:blue>) вместо кодов&.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ZcDANgmk:tIux4ndp"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ZcDANgmk:tIux4ndp"
}

