merumaru64-alt
πŸ“Ž 1 file 11,013 chars
πŸ“„
pasted-code-1787332513804.txt
txt 471 lines
β–Ά
DXVanguard β€” Advanced Minecraft Anti-Cheat & Server Protection

Overview

DXVanguard is an advanced, server-side anti-cheat and security plugin designed to protect Minecraft servers from hacked clients, unauthorized modifications, exploit attempts, and operator-level attacks.

The plugin should prioritize server stability, accurate detection, compatibility, and low false-positive rates while providing administrators with detailed information about detected violations.

Plugin Name: DXVanguard
Prefix: [DX-Vanguard]
Author: DistrictX Developers Official
Target: Minecraft 1.8 β†’ Latest Minecraft Version
Platform: Paper / Spigot-compatible where technically possible

βΈ»

1. Universal Minecraft Version Support

DXVanguard should be designed with a compatibility architecture that supports:

* Minecraft 1.8
* Minecraft 1.8.8
* Minecraft 1.9–1.12
* Minecraft 1.13–1.16
* Minecraft 1.17–1.20
* Minecraft 1.21+
* Future Minecraft versions whenever possible

Version-dependent functionality should be separated through compatibility modules rather than hard-coded to a single Minecraft version.

If a feature is unavailable on an older Minecraft version, DXVanguard should gracefully disable that specific feature instead of preventing the entire plugin from loading.

βΈ»

2. Anti-Cheat Protection

DXVanguard should provide server-side detection for common cheat categories, including:

Combat

* KillAura
* AimAssist
* Reach
* AutoClicker
* TriggerBot
* Criticals
* Hitbox manipulation
* Attack-rate manipulation
* Impossible attack angles
* Invalid attack timing

Movement

* Fly
* Speed
* BunnyHop
* LongJump
* Step
* Glide
* NoFall
* Jesus
* Impossible movement patterns
* Velocity manipulation

Player

* AutoTotem
* InventoryMove
* FastUse
* NoSlow
* Impossible inventory interactions
* Abnormal item usage

World / Mining

* X-Ray
* Nuker
* FastBreak
* AutoMine
* Impossible block interactions

Building

* Scaffold
* AutoBridge
* FastPlace
* Impossible block placement

Automation

* AutoFish
* AutoFarm
* Baritone-style automation
* Automated interaction
* Automated mining

Client / Utility Cheats

* Freecam
* ESP-related behavior
* prohibited client modules
* packet manipulation
* abnormal client behavior
* known exploit patterns

Detection should use multiple signals rather than immediately punishing a player based on a single suspicious action.

βΈ»

3. Violation-Level System

Every detection should have a violation level.

Example:

[DX-Vanguard] Player HyperZ has triggered KillAura (VL: 4)

The violation system should support configurable thresholds:

punishments:
  killaura:
    warning-vl: 5
    kick-vl: 10
    ban-vl: 20

Administrators should be able to configure whether a detection:

* Warns
* Logs
* Kicks
* Temporarily bans
* Permanently bans
* Does not automatically punish

This allows administrators to use DXVanguard in detection-only mode before enabling automatic punishment.

βΈ»

4. Prohibited Client Detection

DXVanguard should maintain a configurable prohibited-client list.

Examples may include:

* Wurst
* LiquidBounce
* Meteor
* FDP Client
* Impact
* Aristois
* BleachHack
* ThunderHack
* DoomsDay
* Vape
* Raven
* Rise
* Future
* Konas
* RusherHack
* other known hacked clients

The list should be configurable so administrators can add or remove clients without modifying the plugin JAR.

However, client identification should not be treated as the only anti-cheat mechanism, because clients can spoof their identity. Behavioral and packet-based detection should remain the primary protection.

βΈ»

5. DiscordSRV Integration

DXVanguard should support integration with DiscordSRV.

When a player is punished for cheating, DXVanguard should optionally broadcast the punishment to a configured Discord channel.

Example:

πŸ›‘οΈ DX-Vanguard Punishment
Player: HyperZ
Detection: KillAura
Violation Level: 20
Action: Permanent Ban
Reason: Unfair Advantage / Hacked Client

Configuration:

discord:
  enabled: true
  plugin: DiscordSRV
  channel: "anti-cheat"
  broadcast-bans: true
  broadcast-kicks: true
  broadcast-detections: false

If DiscordSRV is not installed, the Discord integration should automatically disable itself without causing DXVanguard to fail.

βΈ»

6. Anti-OP / Operator Security

DXVanguard should include a dedicated Anti-OP Security System.

The purpose is to protect the server from unauthorized attempts to obtain operator privileges through:

* Force-op exploits
* Permission exploits
* Malicious plugins
* Vulnerable commands
* Unauthorized console interaction
* Permission manipulation
* Exploit-based operator acquisition
* Unexpected OP status changes

DXVanguard should monitor operator-status changes and immediately record who granted the permission, when it happened, and the source when the server/API provides that information.

Example:

[DX-Vanguard] SECURITY ALERT
Player: ExamplePlayer
Event: Unauthorized OP status detected
Previous OP: false
Current OP: true
Action: OP status removed

βΈ»

7. Trusted Operator List

DXVanguard should include a configurable trusted operator list in config.yml.

Example:

security:
  anti-op:
    enabled: true
    trusted-operators:
      - "OwnerName"
      - "DeveloperName"
      - "AdminName"

For stronger security, the plugin should preferably support UUIDs instead of relying only on usernames.

Example:

trusted-operators:
  - uuid: "00000000-0000-0000-0000-000000000000"
    name: "OwnerName"
    reason: "Server Owner"

This prevents a player from changing their username and accidentally matching an administrator’s entry.

βΈ»

8. Unauthorized OP Detection

If a player receives operator privileges and their UUID is not present in the trusted operator list, DXVanguard should immediately trigger a security response.

Default behavior:

1. Detect unexpected OP status.
2. Log the event.
3. Remove OP status.
4. Record the player’s UUID and name.
5. Notify online administrators.
6. Optionally kick the player.
7. Optionally issue a configurable temporary/permanent ban.
8. Send the event to DiscordSRV.
9. Save the event to the security log.

Example:

[DX-Vanguard] CRITICAL SECURITY ALERT
Player ExamplePlayer obtained unauthorized operator privileges.
OP status has been removed.

βΈ»

9. OP Audit Logging

DXVanguard should maintain an operator audit log.

Example:

[2026-08-22 00:45:13]
Player: ExamplePlayer
UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Event: OP_GRANTED
Authorized: false
Action: OP_REMOVED

The plugin should record:

* Player name
* UUID
* Timestamp
* Previous OP status
* New OP status
* Whether the player is trusted
* Available source information
* Action taken

Logs should be stored separately from normal anti-cheat logs.

Example folder:

plugins/DXVanguard/
β”œβ”€β”€ config.yml
β”œβ”€β”€ messages.yml
β”œβ”€β”€ clients.yml
β”œβ”€β”€ punishments.yml
β”œβ”€β”€ logs/
β”‚   β”œβ”€β”€ anticheat.log
β”‚   └── security.log
└── data/

βΈ»

10. Security Configuration

Example:

security:
  anti-op:
    enabled: true
    remove-unauthorized-op: true
    notify-staff: true
    kick-player: true
    ban-player: false
    trusted-operators:
      - uuid: "00000000-0000-0000-0000-000000000000"
        name: "OwnerName"
        reason: "Server Owner"
  audit-log:
    enabled: true
  discord-alerts:
    enabled: true

The default configuration should prioritize removing unauthorized OP and logging the incident, rather than automatically banning someone based solely on an OP change. This reduces the risk of administrators being accidentally punished because another trusted plugin legitimately granted OP.

βΈ»

11. Administrative Commands

DXVanguard should provide commands such as:

/dxvanguard
/dxvanguard reload
/dxvanguard alerts
/dxvanguard check 
/dxvanguard violations 
/dxvanguard punish 
/dxvanguard unban 
/dxvanguard security
/dxvanguard opcheck 
/dxvanguard trustedop add 
/dxvanguard trustedop remove 
/dxvanguard logs

Permissions should be configurable:

dxvanguard.admin
dxvanguard.alerts
dxvanguard.bypass
dxvanguard.security
dxvanguard.trustedop
dxvanguard.logs

βΈ»

12. Staff Alerts

Staff members with the appropriate permission should receive real-time alerts.

Example:

[DX-Vanguard] ⚠ HyperZ triggered Speed
[DX-Vanguard] VL: 8 | Ping: 42ms

Critical security alerts should be visually distinguishable:

[DX-Vanguard] ⚠ CRITICAL SECURITY ALERT
[DX-Vanguard] Unauthorized OP detected: ExamplePlayer
[DX-Vanguard] OP status removed automatically.

βΈ»

13. False-Positive Protection

DXVanguard must avoid punishing players based on a single suspicious action.

Detection should consider factors such as:

* Ping
* Server TPS
* Movement history
* Player velocity
* Lag compensation
* Packet timing
* Server version
* Player state
* Legitimate gameplay mechanics
* Knockback
* Vehicle movement
* Teleportation
* Potion effects
* Plugins that modify movement

Administrators should be able to configure sensitivity for each check.

βΈ»

14. Bypass System

DXVanguard should support configurable bypass permissions for trusted staff and testing accounts.

Example:

bypass:
  permission: "dxvanguard.bypass"

However, bypass players should still be logged when they trigger detections if logging is enabled.

βΈ»

15. Performance Requirements

DXVanguard should be designed for production servers and should avoid unnecessary resource consumption.

Requirements:

* Asynchronous processing where safe
* Minimal main-thread workload
* Efficient player tracking
* Configurable detection checks
* No unnecessary database queries
* Automatic cleanup of inactive player data
* No console spam during normal operation

βΈ»

16. Important Security Principle

DXVanguard should not rely exclusively on hacked-client names or client-brand detection.

A strong anti-cheat architecture should primarily detect what the player is actually doing.

Client detection can be used as an additional signal, while behavioral, movement, combat, packet, and server-side validation should provide the main protection.

The goal of DXVanguard is to provide a layered security system:

                    DXVanguard
                        β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚               β”‚                β”‚
    Anti-Cheat      Client Detection   Security
        β”‚               β”‚                β”‚
   Combat/Move       Hacked Clients     Anti-OP
   Reach/Fly         Prohibited Mods    Audit Logs
   Speed/Scaffold    Client Signals     Exploit Alerts
        β”‚               β”‚                β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚
                 Punishment System
                        β”‚
             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
             β”‚          β”‚          β”‚
           Warn        Kick        Ban
                        β”‚
                   DiscordSRV
                        β”‚
                 Staff Notification

DXVanguard should ultimately function as a complete security layer for the DistrictX/Pacifica server, protecting both gameplay integrity and the server’s administrative permissions.
Kodari AI
KodariAug 21 at 5:18 pm 3
  1. Core plugin lifecycle, configuration, logging, and cross-version-safe event architecture.

  2. Layered detections with violation levels, staff alerts, configurable punishments, and bypass handling.

  3. Anti-OP monitoring, trusted-operator controls, audit logs, prohibited-client signals, DiscordSRV fallback integration, and administration commands.

Created the DXVanguard project from scratch with:

  • Gradle Java 8 Spigot-compatible setup and plugin.yml

  • Configurable violation levels, checks, punishments, alerts, bypasses, and client lists

  • Movement, reach, autoclicker, fast-break, fast-place, fly, and client-brand detection

  • Violation tracking with decay, cleanup, logging, and staff notifications

  • Anti-OP monitoring with trusted UUID/name support and security audit logs

  • DiscordSRV soft integration with safe fallback behavior

  • Administrative commands: /reload, /alerts, /check, /violations, /punish, /unban, /security, /opcheck, /trustedop, and /logs

  • Separate anti-cheat and security log files under plugins/DXVanguard/logs/

merumaru64-alt
πŸ“Ž 1 file 7,538 chars
πŸ“„
pasted-code-1787348133815.txt
txt 405 lines
β–Ά
DXVanguard β€” Feature, API, Detection & Punishment Expansion

Please expand DXVanguard with a comprehensive feature set, a developer-friendly API, an extensive cheat-detection system, and fully customizable punishment messages and screen titles.

1. Expanded Anti-Cheat Detection

Please add comprehensive detection for common hacked-client modules and cheat behaviors, including:

Combat

* KillAura
* AimAssist
* AimBot
* Reach
* AutoClicker
* TriggerBot
* Criticals
* Hitbox manipulation
* Attack-rate manipulation
* AutoWeapon
* AutoBlock
* Invalid attack angles
* Impossible attack timing

Movement

* Fly
* Speed
* BunnyHop
* LongJump
* Step
* HighJump
* Glide
* NoFall
* Jesus
* Spider
* FastLadder
* FastClimb
* Velocity
* Anti-Knockback
* Phase
* Blink
* Timer
* Strafe
* AirWalk

Player

* InventoryMove
* NoSlow
* FastUse
* AutoTotem
* AutoArmor
* ChestStealer
* Inventory automation
* Item duplication exploits
* Impossible item interactions

World / Mining

* X-Ray
* CaveFinder
* Nuker
* FastBreak
* AutoMine
* OreFinder
* ChestESP
* BlockESP
* StorageESP

Building

* Scaffold
* AutoBridge
* FastPlace
* Tower
* SafeWalk
* Eagle
* BuildAssist

Automation

* AutoFish
* AutoFarm
* AutoMine
* Baritone-style automation
* AutoClicker
* AutoSell
* Automated interaction

Visual / Utility

* Freecam
* ESP
* Tracers
* FullBright
* PlayerESP
* Nametags
* Radar
* Ghost-hand style interaction

Packet / Exploit Protection

* Invalid packets
* Packet spam
* Abnormal packet rates
* Invalid movement packets
* Invalid interaction packets
* Impossible transaction behavior
* Crash attempts
* Exploit-based permission manipulation
* Force-OP attempts

Detection should be modular so individual checks can be enabled, disabled, or configured independently.

βΈ»

2. Hacked-Client Detection

DXVanguard should maintain a configurable database of known prohibited clients and client families.

The system should support detection/signatures for clients such as:

* Wurst
* LiquidBounce
* FDP Client
* Meteor
* Impact
* Aristois
* BleachHack
* ThunderHack
* DoomsDay
* Vape
* Raven
* Rise
* Future
* Konas
* RusherHack
* Inertia
* Ares
* Lambda
* KAMI
* KAMI Blue
* Baritone
* and other known or newly discovered prohibited clients

The client list should be stored in a configurable file so administrators can add or remove entries without modifying the plugin.

Client detection should only be considered an additional signal. DXVanguard should primarily rely on server-side behavioral detection because hacked clients can spoof their identity.

βΈ»

3. Advanced Violation System

Every detection should generate a configurable Violation Level (VL).

Example:

[DX-Vanguard] Player HyperZ triggered KillAura (VL: 5)

Each check should support configurable thresholds:

checks:
  killaura:
    enabled: true
    warning-vl: 5
    kick-vl: 10
    tempban-vl: 15
    ban-vl: 25

The system should support:

* Warning
* Staff alert
* Logging
* Kick
* Temporary ban
* Permanent ban

Administrators should be able to configure whether punishments happen automatically.

βΈ»

4. Ban, Kick & Temporary-Ban Messages

Please add fully customizable messages for every punishment type.

Ban

[DX-Vanguard] You have been permanently banned from the server.
[DX-Vanguard] Reason: Unfair Advantage
[DX-Vanguard] Detection: KillAura
[DX-Vanguard] Violation Level: 25

Temporary Ban

[DX-Vanguard] You have been temporarily banned.
[DX-Vanguard] Reason: Unfair Advantage
[DX-Vanguard] Detection: Speed
[DX-Vanguard] Duration: 7 days
[DX-Vanguard] Appeal: discord.districtx.org

Kick

[DX-Vanguard] You have been kicked from the server.
[DX-Vanguard] Reason: Suspicious Activity
[DX-Vanguard] Detection: AutoClicker

All messages should be configurable through messages.yml.

βΈ»

5. Screen Title / Subtitle System

Please add a customizable Title + Subtitle system for punishments and critical security alerts.

Example Ban Title

Title:
&c&lYOU HAVE BEEN BANNED
Subtitle:
&7Unfair Advantage &8β€’ &fKillAura

Example Temporary Ban

Title:
&6&lTEMPORARILY BANNED
Subtitle:
&7Duration: &f7 Days

Example Kick

Title:
&c&lKICKED
Subtitle:
&7Suspicious activity detected.

The title system should support:

* Title
* Subtitle
* Fade-in
* Stay time
* Fade-out
* Enable/disable per punishment
* Placeholder support

βΈ»

6. Placeholder System

Please add placeholders such as:

%player%
%player_uuid%
%check%
%check_type%
%violation_level%
%ping%
%server_tps%
%punishment%
%duration%
%reason%
%client%
%timestamp%
%staff%

Example:

[DX-Vanguard] %player% was punished for %check%.

βΈ»

7. Developer API

Please create a proper public DXVanguard API so other plugins can communicate with DXVanguard.

Example API capabilities:

DXVanguardAPI.getPlayerData(player);
DXVanguardAPI.getViolationLevel(player, check);
DXVanguardAPI.addViolation(player, check, amount);
DXVanguardAPI.resetViolations(player);
DXVanguardAPI.punish(player, punishment);
DXVanguardAPI.isDetected(player);
DXVanguardAPI.isBypassed(player);
DXVanguardAPI.getDetectedClient(player);

The API should provide access to:

* Player detection data
* Violation levels
* Active checks
* Punishment information
* Client detection information
* Bypass status
* Security events
* OP/security alerts

βΈ»

8. API Events

Please provide Bukkit/Paper events where appropriate.

Examples:

DXVanguardViolationEvent
DXVanguardPunishmentEvent
DXVanguardDetectionEvent
DXVanguardClientDetectEvent
DXVanguardSecurityEvent
DXVanguardOPChangeEvent

Other plugins should be able to listen for these events and react accordingly.

For example, another plugin could detect:

Player β†’ KillAura detected β†’ DXVanguardViolationEvent

and perform its own action.

βΈ»

9. DiscordSRV Integration

Continue supporting DiscordSRV integration for punishments and security alerts.

Example:

πŸ›‘οΈ DX-Vanguard Punishment
Player: HyperZ
Detection: KillAura
VL: 25
Punishment: Permanent Ban
Reason: Unfair Advantage

Security events such as unauthorized OP changes should also optionally be broadcast:

🚨 DX-VANGUARD SECURITY ALERT
Player: ExamplePlayer
Event: Unauthorized OP
Action: OP removed

βΈ»

10. Anti-OP Security API

The API should also expose operator-security information.

Other plugins should be able to check:

isTrustedOperator(player)
isUnauthorizedOperator(player)
getOperatorAuditData(player)

DXVanguard should continue supporting a configurable trusted-operator list through config.yml.

βΈ»

11. Configuration Structure

The plugin should keep its configuration organized and easy to maintain:

plugins/
└── DXVanguard/
    β”œβ”€β”€ config.yml
    β”œβ”€β”€ messages.yml
    β”œβ”€β”€ checks.yml
    β”œβ”€β”€ clients.yml
    β”œβ”€β”€ punishments.yml
    β”œβ”€β”€ api.yml
    β”œβ”€β”€ discord.yml
    β”œβ”€β”€ logs/
    β”‚   β”œβ”€β”€ anticheat.log
    β”‚   └── security.log
    └── data/

βΈ»

12. Important Requirements

DXVanguard should be designed as a modular, production-ready anti-cheat and server-security platform, rather than simply a hacked-client blacklist.

The system should prioritize:

* Accurate detection
* Low false positives
* Performance
* Version compatibility
* Configurability
* Developer API access
* Detailed logging
* Discord integration
* Anti-OP protection
* Custom punishment messages
* Custom titles/subtitles
* Easy administration
* Expandable detection modules

All player-facing messages should use the global prefix:

[DX-Vanguard]

The architecture should also make it possible to add new checks, client signatures, punishment types, API features, and security modules in future updates without requiring a complete rewrite of the plugin.
Kodari AI
KodariAug 21 at 9:50 pm 8
  1. Expand the configuration, message, placeholder, title, and punishment layers.

  2. Add the public API plus cancellable Bukkit events and security accessors.

  3. Modularize the detection registry and add the requested behavioral/packet/client signal checks.

  4. Complete Discord/security configuration and update administration support.

  • Add list-based punishment messages and configurable title/subtitle delivery with placeholder expansion.

  • Extend punishment execution to format all requested placeholders, show the correct player-facing message/title, and use configurable reasons/durations.

  • Add the corresponding message and punishment configuration for the existing checks without changing detection behavior.

  • Add the public API facade, punishment type, player/client state accessors, and operator audit data.

  • Publish cancellable detection, violation, punishment, client, security, and OP-change events at the existing flow points.

  • Expose reset/action methods and bind the API during plugin enable.

  • Add independently addressable check types for the requested categories while keeping packet/render-only checks explicitly disabled unless a supported signal exists.

  • Register a separate Bukkit-only behavioral listener for movement, combat geometry, inventory timing, mining bursts, interaction automation, fishing, and placement patterns.

  • Add per-player sampling state and client signatures for the expanded signal set.

  • Load clients.yml as the authoritative configurable client database instead of reading a missing main-config key.

  • Add configurable Discord templates/placeholders and structured security alert formatting with safe DiscordSRV fallback.

  • Make the expanded checks explicit in configuration with independent defaults, thresholds, and conservative disabled states for signals Bukkit cannot observe.

  • Fix the Java 8/Spigot 1.8 compatibility issue in title delivery by avoiding a direct Player.sendTitle call.

  • Correct punishment reason lookup and ensure cancelled punishment events do not consume their threshold.

  • Add global conservative punishment defaults so every expanded check has configurable threshold support even when its section is omitted.- Correct the API/punishment integration issues exposed by the expansion: reason resolution, cancelled-event state, and security audit metadata.

  • Add configurable Discord message templates and a critical security title.

  • Keep all changes compatible with the project’s Java 8 / Spigot 1.8.8 baseline.

  • Repair the punishment command formatter’s missing reason variable.

  • Normalize Discord templates into a real nested YAML section so discord.* lookups work after reload.

  • Preserve the existing API/events and detection additions unchanged.- Add the missing security-alert title configuration and correct OP audit metadata so previousOp reflects the actual prior state.

  • Expose active-check status through the public API.

  • Leave packet/render-only checks disabled rather than claiming unsupported detection.Implemented the DXVanguard expansion:

  • Added modular check types covering combat, movement, player, mining, building, automation, visual, packet, and exploit categories.

  • Added Bukkit-observable behavioral checks for:

    • KillAura-like attack alignment

    • Invalid attack angles

    • High jump

    • Glide

    • Phase

    • Jesus

    • AirWalk

    • Fast ladder movement

    • InventoryMove

    • ChestStealer timing

    • FastUse

    • Automated interaction

    • AutoFish

    • Nuker-style break bursts

    • Scaffold-style placement

  • Added expanded per-player detection state and detected-client tracking.

  • Added configurable client database loading from clients.yml, including the additional requested client signatures.

  • Added configurable punishment messages, reasons, durations, placeholders, titles, subtitles, and fade timings.

  • Added placeholders including %player%, %player_uuid%, %check%, %check_type%, %violation_level%, %ping%, %server_tps%, %punishment%, %duration%, %reason%, %client%, %timestamp%, %staff%, and %detail%.

  • Added public API methods for player data, violations, resets, punishments, bypasses, active checks, detected clients, and operator security.

  • Added cancellable Bukkit events:

    • DXVanguardDetectionEvent

    • DXVanguardViolationEvent

    • DXVanguardPunishmentEvent

    • DXVanguardClientDetectEvent

    • DXVanguardSecurityEvent

    • DXVanguardOPChangeEvent

  • Added structured operator audit data and critical security titles.

  • Added configurable Discord message templates for detections, punishments, and security alerts.

  • Preserved Java 8 and Spigot 1.8.8 compatibility by using reflection for newer title, ping, and TPS APIs.

Raw packet validation, packet spam analysis, ESP/fullbright detection, and other client-rendering checks remain disabled because Spigot’s standard API cannot reliably observe them without ProtocolLib, NMS, or another packet provider.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
29 2,080
src/main/java/com/districtx/dxvanguard/DXVanguard.java
package com.districtx.dxvanguard;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.districtx.dxvanguard.api.DXVanguardAPI;

public final class DXVanguard extends JavaPlugin {
    private MessageService messageService;
    private AuditLogger auditLogger;
    private DiscordService discordService;
    private StaffAlertService staffAlertService;
    private PunishmentManager punishmentManager;
    private ViolationManager violationManager;
    private SecurityManager securityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        saveResource("clients.yml", false);
        messageService = new MessageService(this);
        auditLogger = new AuditLogger(this);
        discordService = new DiscordService(this);
        staffAlertService = new StaffAlertService(this);
        punishmentManager = new PunishmentManager(this);
        violationManager = new ViolationManager(this);
        securityManager = new SecurityManager(this);
        DXVanguardAPI.initialize(this);

        Bukkit.getPluginManager().registerEvents(new DetectionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new BehaviorDetectionListener(this), this);
        ClientDetectionListener clientDetectionListener = new ClientDetectionListener(this);
        Bukkit.getMessenger().registerIncomingPluginChannel(this, "MC|Brand", clientDetectionListener);
        Bukkit.getMessenger().registerIncomingPluginChannel(this, "minecraft:brand", clientDetectionListener);
        Bukkit.getPluginManager().registerEvents(securityManager, this);

        VanguardCommand command = new VanguardCommand(this);
        if (getCommand("dxvanguard") != null) {
            getCommand("dxvanguard").setExecutor(command);
            getCommand("dxvanguard").setTabCompleter(command);
        }

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            violationManager.decayAndCleanup();
            securityManager.scanOperators();
        }, 20L, 20L);
        getLogger().info("DXVanguard enabled with layered detection and operator security.");
    }

    @Override
    public void onDisable() {
        DXVanguardAPI.shutdown();
    }

    public MessageService getMessageService() {
        return messageService;
    }

    public AuditLogger getAuditLogger() {
        return auditLogger;
    }

    public DiscordService getDiscordService() {
        return discordService;
    }

    public StaffAlertService getStaffAlertService() {
        return staffAlertService;
    }

    public PunishmentManager getPunishmentManager() {
        return punishmentManager;
    }

    public ViolationManager getViolationManager() {
        return violationManager;
    }

    public SecurityManager getSecurityManager() {
        return securityManager;
    }
}