Список изменений
AntiAFKPlus v2.9.2 — Dynamic Credit Group Detection & Multi-Server Documentation
Release type: Bugfix & Enhancement Compatibility: Minecraft 1.16 – 1.21.11 | Java 17+
What's Fixed
🔧 Credit System Group Detection
- Dynamic Group Reading: Plugin now automatically detects ALL groups defined in
credit-ratiosandmax-creditsconfig sections - No More Hardcoded Limitations: Previously only supported
admin,premium, andvipgroups — now supports unlimited custom groups - Custom Group Support: Works with any group name:
sponsor,premium+,vip+,owner,member, etc. - Permission Format: Uses
antiafkplus.credit.ratio.<groupname>pattern (e.g.,antiafkplus.credit.ratio.sponsor) - Priority System: Implements configurable group priority order (admin > owner > sponsor > premium+ > vip+ > premium > vip > default)
📝 Technical Improvements
- Added dynamic
ConfigurationSectionreading for group detection - Implemented intelligent caching system for group priority calculations
- Cache automatically clears on
/afkplus reloadfor instant config updates - Enhanced debug logging to show matched groups per player
- Improved error handling with fallback to default values
What's Documented
🌐 Multi-Server Credit System Setup
- Fully Documented: Complete documentation for running multiple servers (Skyblock, Survival, etc.) with separate credit systems sharing one database
- Table Prefix Feature: Use
table-prefixconfig option to separate credit tables per server - Configuration Examples: Step-by-step guides added to
config.ymlandREADME.md - New Documentation File:
MULTI_SERVER_DOCUMENTATION.mdwith complete setup guide, troubleshooting, and security best practices
How It Works:
- Each server uses a different
table-prefix(e.g.,skyblock_,survival_) - All servers connect to the same MySQL/SQLite database
- Credits are completely independent per server
- No code changes needed — configuration only!
Configuration Example
credit-system:
credit-ratios:
default: '5:1'
vip: '4:1'
premium: '3:1'
premium+: '2:1'
sponsor: '1:30' # ✅ Now works!
owner: '1:60' # ✅ Custom groups supported!
max-credits:
default: 120
vip: 180
premium: 240
sponsor: 500
owner: 1000
# Optional: Customize priority order
group-priority-order:
- owner
- admin
- sponsor
- premium+
- vip+
- premium
- vip
Multi-Server Setup Example
Skyblock Server (config.yml):
credit-system:
database:
enabled: true
table-prefix: "skyblock_" # Skyblock tables
database:
type: "MySQL"
mysql:
host: "localhost"
database: "antiafkplus"
Survival Server (config.yml):
credit-system:
database:
enabled: true
table-prefix: "survival_" # Survival tables
database:
type: "MySQL"
mysql:
host: "localhost"
database: "antiafkplus" # Same database!
Result: Independent credit systems (skyblock_credits, survival_credits) in one shared database.
Permission Setup (LuckPerms Example)
/lp group sponsor permission set antiafkplus.credit.ratio.sponsor true
/lp group premium+ permission set antiafkplus.credit.ratio.premiumplus true
Note: Plus signs (+) in group names convert to plus in permission nodes.
Compatibility
- Minecraft: 1.16 – 1.21.11
- Platforms: Bukkit, Spigot, Paper, Purpur, Folia
- Java: 17+
- Permission Plugins: LuckPerms, PermissionsEx, GroupManager, etc.
- Fully Backward Compatible: Existing configurations continue to work
Upgrade Notes
- Replace the old JAR with
AntiAFKPlus v2.9.2 - Update LuckPerms (or other permission plugin) with new group permissions:
- Format:
antiafkplus.credit.ratio.<groupname>
- Format:
- Optional: Customize group priority order in
config.yml - NEW: Check
config.ymlfor multi-servertable-prefixexamples if you run multiple servers - Reload with
/afkplus reloadto apply changes - Enable
debug: truein config to verify group detection
Existing
admin,premium, andvipgroups continue to work without changes. New custom groups require permission node setup.
Multi-Server Users: If you want to separate credit systems across multiple servers, configure different
table-prefixvalues in each server'sconfig.yml(see documentation).
For Developers
API Version: 2.9.2 (unchanged API, internal improvements only)
No breaking changes to the public API. The credit system now uses dynamic group detection internally, improving flexibility for server administrators.
Version: 2.9.2 Release Date: 19/12/2025 (Documentation Update) Compatibility: Minecraft 1.16 - 1.21.11 Java: 17+

