
PRAXIC AntiCheat
Server-side AntiCheat for Fabric. No client installation required.
Список изменений
⚡ PRAXIC 0.3.0 — Integrations & API
Server-side AntiCheat for Fabric 1.21.1 — No client installation required. This update adds server integrations, a public API for other mods, and a new stats command for server administrators.
🔔 Update Checker
Automatically checks Modrinth for new versions on every server start.
Notifies all online OP2+ players on join if a newer version is available.
The check is fully asynchronous — zero impact on server startup time.
Can be disabled in config/praxic.json.
| Config key | Default |
|---|---|
enableUpdateChecker | true |
📡 Discord Webhook
Sends a rich embed alert to a Discord channel on every violation flag.
Each embed includes: player name, check name, violation count, details and action taken.
Color-coded by severity: 🟠 flagged, 🔴 kicked, 🔴 banned.
Disabled by default — enable it in config/praxic.json:
set enableDiscordWebhook to true and paste your webhook URL into discordWebhookUrl.
| Config key | Default |
|---|---|
enableDiscordWebhook | false |
discordWebhookUrl | YOUR_WEBHOOK_URL_HERE |
How to get a webhook URL: Discord → Channel Settings → Integrations → Webhooks → Create Webhook → Copy URL
🔧 OnViolation API
A Fabric event that fires on every PRAXIC violation flag.
Other mods can listen to PraxicViolationEvent.EVENT to react to violations.
Each event exposes:
player— the flagged ServerPlayercheckName— name of the triggered check (e.g."FlyCheck")violations— current violation count for this checkdetails— human-readable details of the violationaction— action taken:flag,warn,kick, orban
Use cases: custom punishments, economy penalties, external logging, custom alerts.
📊 Stats Command
New /praxic stats command available to all OP2+ operators.
Displays a live summary of the current server session:
- Total flags — how many times any check has fired
- Top checks — top 3 most triggered checks with flag counts
- Top players — top 3 most flagged players with total violation counts
Stats are tracked in-memory and reset on server restart.
⚙️ Technical Changes
PraxicViolationEventregistered as a standard Fabric array-backed event.PraxicStatsuses thread-safeAtomicIntegercounters.DiscordWebhookandUpdateCheckeruse Java 21HttpClient— fully async.ViolationManagerrefactored:resolvedActioncomputed once and shared across logging, Discord, API event and punishment logic.- Internal version bump to 0.3.0.
