π OP-MOD-BLOCKER β ULTIMATE ANTI-MOD SYSTEM
Premium Edition | Developed by ASHEXE799
Upgrade the EXISTING ModBlocker project into a professional, feature-rich Minecraft anti-mod security system named OP-MOD-BLOCKER.
Inspect the existing repository, preserve working functionality, and implement the complete feature set below. Do not create duplicate projects or remove existing commands, permissions, configuration features, or working detection logic.
The primary objective is to verify client mod reports at the earliest possible connection stage, prevent unverified players from accessing gameplay, immediately disconnect players whose valid reports contain blocked mods, and provide comprehensive administration, monitoring, Discord notifications, and safe automatic update checking.
---
- PLUGIN IDENTITY AND VERSION COMPATIBILITY
Plugin name: "OP-MOD-BLOCKER"
Main class: "com.kodari.modblocker.ModBlockerPlugin"
Developer branding: "ASHEXE799"
Plugin messaging channel: "modblocker:mods"
Runtime environment: Minecraft server running in a Java 25 Docker container.
Supported-version goal: Paper Minecraft 1.21.x through 26.2.
Requirements:
- Inspect the existing build configuration and source before modifying anything.
- Verify Paper API coordinates against official Maven metadata.
- Choose an appropriate compile baseline and Java release.
- Prefer Java 21 bytecode when the selected APIs permit it, so the plugin can run on Java 25.
- Do not use APIs unavailable in the declared compile baseline.
- If newer Paper releases require incompatible APIs or different Java requirements, provide version-specific build variants or adapters.
- Keep the public plugin identity, main class, existing commands, permissions, and detection channel stable.
- Document every version actually verified.
- Do not claim that one JAR supports every version from 1.21 through 26.2 without evidence.
DONE means the project builds and produces a verified JAR with accurate compatibility documentation.
- CRITICAL FEATURE: VERIFY MODS BEFORE GAMEPLAY ACCESS
This is the highest-priority feature.
I want OP-MOD-BLOCKER to identify blocked mods before a player can access the actual Minecraft gameplay world, rather than waiting until the player has already spawned and started playing.
Implement the earliest technically supported verification workflow.
Connection workflow
- Detect the incoming connection at the earliest supported login stage.
- Associate the connection with a verification session.
- Require a compatible companion client mod when mandatory verification is enabled.
- Request or receive the client's mod inventory using a documented protocol.
- Validate the report before trusting any reported values.
- Compare normalized mod IDs against the configured blocklist.
- If a valid report contains a blocked mod, disconnect the player immediately using the configured message and action.
- If the report is valid and contains no blocked IDs, mark verification successful and allow the player to continue.
- If verification times out, apply the configured missing-report policy.
- Ensure an unverified player cannot bypass verification simply by reconnecting repeatedly.
Important implementation requirements
Investigate the actual Paper login lifecycle and plugin-message limitations.
A normal Paper plugin-message channel cannot reliably receive arbitrary client inventory data before the client has established the connection needed for that channel.
If true pre-gameplay verification requires a Velocity proxy component or a custom connection protocol, document that dependency and implement it only where the available project scope and environment permit.
Keep the existing Velocity project unbuilt unless a separate build is explicitly authorized. If a proxy component is necessary but not authorized, report that dependency clearly instead of pretending the Paper plugin alone provides pre-login inspection.
Provide configurable outcomes for:
- Valid report with no blocked mods.
- Valid report with blocked mods.
- Missing report.
- Verification timeout.
- Invalid or malformed report.
- Unsupported client protocol.
- Client incompatibility.
- Temporary verification failure.
- Exempt administrator or bypassed player.
Support configurable fail-open and fail-closed behavior. Explain the consequences of each.
Never claim that the plugin inspected a player's client before connection establishment unless the implemented architecture and tests actually prove it.
- COMPANION CLIENT MOD AND INVENTORY PROTOCOL
Implement or integrate the companion client component required for reporting discoverable client mods.
Preserve the channel identifier:
"modblocker:mods"
Define a versioned, validated protocol with clear message formats, maximum payload sizes, rate limits, and compatibility negotiation.
The inventory should include available fields such as:
- Mod ID.
- Mod display name.
- Mod version.
- Mod loader.
- Loader version.
- Minecraft client version.
- Client protocol version.
- Report timestamp.
- Inventory completeness.
- Verification status.
Requirements:
- Normalize and deduplicate IDs.
- Bound the number and size of entries.
- Reject malformed payloads safely.
- Detect expired reports.
- Avoid duplicate reports and repeated notifications.
- Clear session-specific data on disconnect.
- Keep the latest report in a bounded cache.
- Expose report freshness and completeness to administrators.
Do not describe the report as a cryptographically verified inventory unless the architecture actually provides that guarantee.
The client component must only collect information relevant to the configured anti-mod purpose. Do not inspect unrelated personal files or transmit unrelated client data.
- COMPLETE MOD LIST AND ADMIN OBSERVATION
Add an administrator-only command:
"/opmodblocker mods <player>"
Display the latest available client report, including:
- Player name and UUID.
- Minecraft version.
- Loader and loader version.
- Report time and age.
- Report completeness.
- Number of reported mods.
- Mod IDs, names, and versions.
- Blocked mod matches.
- Verification result.
Support pagination for large inventories.
Add configurable filtering and sorting where useful.
Provide a summary for blocked entries and a detailed view for authorized administrators.
The command must clearly distinguish between:
- Fresh, valid report.
- Partial report.
- Expired report.
- No report available.
- Verification failed.
Never pretend that the server has performed a live scan when only a cached report is available.
- ADVANCED BLOCKED MOD DETECTION
Implement a configurable blocklist with friendly names and enforcement policies.
Support:
- Exact normalized mod IDs.
- Friendly display names.
- Case-insensitive matching where appropriate.
- Duplicate elimination.
- Optional known-artifact signatures.
- Configurable rules for known restricted mods.
- Configurable enforcement actions.
- Auditable reasons for every enforcement decision.
Renamed Freecam and modified clients
Do not rely exclusively on mod filenames, launcher display names, or user-editable mod names.
Investigate practical detection methods, including:
- Stable identifiers available from the client loader.
- Known signatures for specific restricted artifacts.
- Client protocol and inventory consistency validation.
- Version and metadata consistency checks.
- Optional integrity verification for a trusted companion client.
- Documented rules for known Freecam implementations when reliable indicators exist.
Important limitations:
- Renaming a mod does not guarantee it can be identified.
- Client-controlled reports can be falsified.
- Artifact hashes only identify known artifacts or builds.
- Modified, obfuscated, or custom-built clients may evade simple detection.
- A server plugin cannot universally inspect arbitrary client memory or files.
- Do not automatically ban players solely on weak heuristic evidence.
- Distinguish confirmed matches from suspicious indicators.
- Record the rule and reason behind each match.
Do not advertise guaranteed detection of every Freecam variant or every renamed mod.
- IMMEDIATE ENFORCEMENT AND CONSOLIDATED ALERTS
Supported actions:
- "KICK"
- "NOTIFY"
- "LOG"
- "NONE"
When a valid report contains multiple blocked mods:
- Normalize and deduplicate the IDs.
- Identify every matching blocked mod.
- Count the unique matches correctly.
- Execute the configured action immediately after validation.
- Send one consolidated administrator alert.
- Send one consolidated Discord alert.
- Avoid duplicate alerts for the same report.
- Never delay enforcement while waiting for Discord.
Example:
π¨ BLOCKED MODS DETECTED!
π€ PLAYER: Steve
π§© BLOCKED MODS: β’ FREECAM_MOD β’ EXAMPLE_RESTRICTED_MOD β’ ANOTHER_BLOCKED_MOD
π TOTAL BLOCKED MODS: 3
β‘ ACTION: KICK
π TIME: 2026-10-13 22:30:00
Support placeholders:
- "%player%"
- "%uuid%"
- "%mod_id%"
- "%mod_name%"
- "%blocked_mods%"
- "%blocked_mod_count%"
- "%action%"
- "%timestamp%"
- "%server%"
- "%prefix%"
- "%usage%"
Every placeholder must be implemented. Never output "null" or leave unresolved placeholders in a message.
- PREMIUM CONFIG.YML
Create a detailed, organized, documented configuration with sensible defaults.
Every setting must have an explanatory comment describing what it does, its accepted values, and its default behavior.
Include these sections:
General
- Plugin enablement.
- Debug logging.
- Configuration schema version.
- Safe migration.
- Branding and prefix.
Join verification
- Verification enablement.
- Verification timeout.
- Earliest supported enforcement stage.
- Missing-report policy.
- Fail-open or fail-closed policy.
- Unsupported-client behavior.
- Protocol compatibility.
- Reconnect handling.
- Report expiry.
Detection
- Detection channel.
- Blocked mod IDs.
- Friendly names.
- Optional known-artifact signatures.
- Inventory validation.
- Maximum report size.
- Maximum inventory entries.
- Rate limiting.
- Duplicate suppression.
Enforcement
- KICK, NOTIFY, LOG, or NONE.
- Custom kick message.
- Bypass permission.
- Exempt-player list.
- Multiple-mod behavior.
- Suspicious-indicator policy.
Notifications
- Administrator permission.
- Consolidated alerts.
- Cooldown.
- Audit logging.
- Timestamp format.
- Configurable list separators.
Performance
- Bounded report cache.
- Cache expiration.
- Safe cleanup.
- Asynchronous external requests.
- HTTP timeouts.
- Log rotation.
Discord
- Enablement.
- Webhook URL.
- Webhook username.
- Avatar URL.
- Footer.
- Server name.
- Embed timestamps.
- Cooldown.
- Request timeout.
Updates
- Enablement.
- Official metadata URL.
- Current version comparison.
- Administrator notifications.
- Download verification.
- Trusted release link.
Do not add configuration options that are not actually implemented.
- PREMIUM MESSAGES.YML AND BRANDING
All player, console, and administrator messages must be configurable.
Default style:
- UPPERCASE LETTERS.
- BOLD FORMATTING.
- Minecraft "&" color codes.
- Emojis.
- Consistent branding.
- Configurable prefix and message formatting.
Use Adventure Components and "LegacyComponentSerializer.legacyAmpersand()" where supported. Do not use MiniMessage.
Include messages for:
- Startup and shutdown.
- Reload success and failure.
- Verification pending.
- Verification success.
- Verification timeout.
- Invalid reports.
- Blocked mod detection.
- Single and multiple blocked mods.
- Kick messages.
- Admin notifications.
- Missing and expired reports.
- Unsupported client versions.
- Discord failures.
- Update availability.
- Permission failures.
- Invalid command usage.
Default startup message:
startup: - "&8&m----------------------------------------" - "&c&lπ‘οΈ OP-MOD-BLOCKER &7| &a&lENABLED" - "&7π« CLIENT VERIFICATION INITIALIZED." - "&7π¨βπ» DEVELOPER: &f&lASHEXE799" - "&7βοΈ USE &f/opmodblocker help &7FOR COMMANDS." - "&8&m----------------------------------------"
Default reload message:
reload-success: - "&a&lβ OP-MOD-BLOCKER RELOADED SUCCESSFULLY!"
Default kick message:
kick-message: - "&c&lπ« CONNECTION BLOCKED!" - "&7RESTRICTED MOD REPORTED: &f%mod_name%" - "&7REMOVE THE RESTRICTED MOD BEFORE RECONNECTING."
Default lifecycle messages must go to the console. Player broadcasts must be configurable and disabled by default.
If initialization fails, never print a success message claiming that detection is active.
- DISCORD WEBHOOK SYSTEM
Implement an optional, asynchronous Discord webhook integration.
Configuration:
discord: enabled: false webhook-url: "" webhook-name: "OP-MOD-BLOCKER" webhook-avatar-url: "" footer-text: "OP-MOD-BLOCKER | DEVELOPED BY ASHEXE799" blocked-mod-alerts: true show-timestamp: true consolidate-reports: true server-name: "My Minecraft Server" request-timeout-ms: 5000 cooldown-seconds: 5
All settings must work.
When a blocked-mod report is confirmed, send one rich embed containing:
Title: π¨ BLOCKED MODS DETECTED
Fields:
- π€ Player name.
- π Player UUID.
- π§© Complete blocked mod list.
- π Total unique blocked mods.
- β‘ Action taken.
- π Server name.
- π Timestamp.
Footer:
"OP-MOD-BLOCKER | DEVELOPED BY ASHEXE799"
Support configurable webhook username and avatar.
Requirements:
- Correct JSON escaping.
- Respect Discord embed and message limits.
- Use asynchronous HTTP requests.
- Enforce bounded timeouts.
- Never block the Minecraft main thread.
- Never delay kicks while waiting for webhook delivery.
- Avoid duplicate alerts and retry storms.
- Never print the complete webhook URL or secret token in logs.
- Validate endpoint configuration.
- Do not send requests when the integration is disabled or the URL is empty.
If a webhook test command is implemented, restrict it to authorized administrators and send a harmless test embed.
- AUTOMATIC UPDATE CHECKER
Implement an optional, safe update-checking system.
- Query an official, configurable release metadata source.
- Compare the installed version with the published version.
- Check compatibility information.
- Notify authorized administrators about new releases.
- Provide a trusted release link.
- Perform requests asynchronously with bounded timeouts.
- Validate metadata and artifact integrity.
- Avoid arbitrary code execution.
- Never silently replace a running JAR.
- Do not automatically download updates by default.
- Report metadata failures honestly.
Provide an administrator command:
"/opmodblocker update"
It should check and report update status, not execute an unverified downloaded file.
- ADMIN COMMANDS AND PERMISSIONS
Preserve all existing commands and permissions.
Add or improve:
- "/opmodblocker help"
- "/opmodblocker reload"
- "/opmodblocker status"
- "/opmodblocker mods <player>"
- "/opmodblocker check <player>"
- "/opmodblocker blocklist"
- "/opmodblocker block <mod-id>"
- "/opmodblocker unblock <mod-id>"
- "/opmodblocker bypass <player>"
- "/opmodblocker update"
Requirements:
- Tab completion.
- Permission checks.
- Clear usage messages.
- Safe persistence of changes.
- Reload validation.
- Appropriate administrator-only access.
- Accurate reporting of current detection status.
- AUDIT LOGGING AND MONITORING
Provide configurable logs for:
- Player verification attempts.
- Verification outcomes.
- Report timestamps.
- Report age and completeness.
- Blocked IDs.
- Match reasons.
- Actions taken.
- Bypass decisions.
- Verification timeouts.
- Suspicious or malformed reports.
- Update-check results.
Include log rotation, bounded storage, duplicate suppression, and cleanup.
Avoid unnecessary client data collection.
- README AND DOCUMENTATION
Update README with:
- Plugin overview and branding.
- Supported Minecraft and Java versions.
- Installation instructions.
- Build instructions.
- Complete configuration reference.
- All message keys and placeholders.
- Commands and permissions.
- Discord webhook setup.
- Update checker behavior.
- Client report protocol.
- Join verification lifecycle.
- Detection limitations.
- Security and privacy notes.
- Configuration migration.
- Actual build and testing results.
Clearly separate implemented, tested, and untested features.
- BUILD, TEST AND DELIVERY
- Inspect the existing source and preserve working features.
- Verify the official Paper API coordinate.
- Implement the configuration, messages, and code changes.
- Validate YAML syntax.
- Compile the Paper plugin.
- Verify the generated JAR and metadata.
- Test report parsing, blocked-ID matching, multiple blocked IDs, placeholder expansion, bypasses, timeouts, and reload behavior where possible.
- Test the actual login lifecycle.
- Test renamed-Freecam detection only with a representative client and artifact.
- Test webhook delivery only if a valid test endpoint is available.
- Do not claim live-server or pre-login testing unless it actually occurred.
- Do not create an unrequested companion project.
- Keep the separate Velocity project unbuilt unless explicitly authorized.
FINAL REPORT MUST INCLUDE:
- Exact Paper API coordinate.
- Java compile target.
- List of files changed.
- Features implemented.
- Generated JAR path.
- Supported versions and verification evidence.
- Actual tests performed.
- Whether true pre-gameplay verification is implemented.
- Whether proxy integration is required.
- Known limitations and remaining work.
DONE means the plugin compiles, the JAR exists, implemented features work as documented, and compatibility claims are evidence-based.
I donβt see any projects in this workspace, so I canβt inspect or upgrade the existing ModBlocker project yet. Please add the existing project to this workspace; Iβll then review its source and preserve its working features while planning the upgrade.
No files in this session