writing{variant="document" id="83621" title="PATHALAM GUARD – Complete Anti-Dupe Plugin Development Prompt"}
PROJECT: PATHALAM GUARD
Advanced Minecraft Dupe Anti-Cheat Plugin
Develop a complete, professional Minecraft Dupe Anti-Cheat plugin named PATHALAM GUARD.
The plugin is designed for Anarchy and PvP servers. Its primary purpose is to detect item duplication exploits, collect evidence, alert staff, and automatically punish players when duplication is conclusively confirmed.
- SERVER COMPATIBILITY
Target environment:
Minecraft: 26.2
Server software: Purpur 26.2
Use compatible Paper/Purpur APIs.
Use the correct Java version for the target server.
Support dedicated server environments.
Ensure compatibility with normal Anarchy gameplay.
- ADVANCED DUPE DETECTION
Create a modular detection system monitoring:
Suspicious inventory manipulation.
Item duplication.
Chest interactions.
Shulker box interactions.
Hopper transfers.
Container transactions.
Suspicious player-to-player transfers.
Abnormal item quantity changes.
Suspicious item creation.
Inventory synchronization inconsistencies.
Suspicious entity and container interactions.
Requirements:
Detect actual duplication, not ordinary item movement.
Track item quantity consistency.
Avoid false positives.
Support legitimate Anarchy mechanics.
Never automatically ban based on suspicion alone.
Require conclusive evidence before punishment.
Allow additional detection modules in future updates.
- HOPPER + BUNDLE DUPE DETECTION
Create a dedicated module named:
HopperBundleDupeDetection
This module is extremely important.
Use the supplied Minecraft hopper and bundle contraption image as a reference for the type of interactions to monitor.
Monitor:
Bundle interactions with hoppers.
Bundle item transfers.
Hopper inventory transactions involving bundles.
Suspicious bundle inventory changes.
Unexpected item quantity increases.
Inventory synchronization inconsistencies.
Suspicious container transaction sequences.
Repeated abnormal bundle and hopper interactions.
Requirements:
- Monitor relevant hopper and bundle transactions.
- Track item quantities before and after transactions.
- Verify whether items were genuinely duplicated.
- Identify the actual player responsible when attribution is supported by evidence.
- Record transaction history.
- Save evidence in SQLite.
- Send staff alerts when duplication is confirmed.
- Apply the standard automatic 3-day ban only after conclusive confirmation.
IMPORTANT:Do not ban players simply for putting a bundle inside a hopper.
Normal bundle and hopper interactions must remain allowed.
Do not assume every hopper and bundle arrangement is a dupe exploit. Validate actual duplication using transaction evidence.
Document which specific interactions are supported by the detection module.
- AUTOMATIC STAFF CHAT ALERTS
When duplication is conclusively confirmed, send an alert to authorized staff.
Use this format:
🛡 PATHALAM GUARD
⚠ DUPLICATION DETECTED!
👤 Player: <ACTUAL_PLAYER_USERNAME>📌 Reason: <ACTUAL_DETECTION_REASON>🔨 Punishment: 3 Days Ban
Requirements:
Automatically retrieve the actual detected player's username.
Never hardcode example usernames.
Display the actual detection reason.
Do not display Ban ID in chat alerts.
Only authorized staff receive alerts.
Support customizable alert messages.
- AUTOMATIC BAN SYSTEM
When duplication is conclusively confirmed:
Automatically ban the detected player.
Default ban duration: EXACTLY 3 DAYS.
Generate a unique Ban ID.
Save the player's actual username.
Save UUID.
Save detection reason.
Save ban date.
Save expiration date.
Save relevant evidence.
Prevent banned players from reconnecting.
Never issue permanent bans for duplication.
Suspicious activity alone must never trigger an automatic ban.
- CUSTOM BAN SCREEN
When a banned player attempts to join, display a professional Minecraft connection-lost screen.
Use this layout:
CONNECTION LOST
PATHALAM GUARD
YOU ARE BANNED FROM THIS SERVER
🕒 DATE: <ACTUAL_BAN_DATE>
🔑 BANNED BY: Pathalam Guard
🏷 REASON: <ACTUAL_BAN_REASON>
⌛ TIME REMAINING<ACTUAL_REMAINING_TIME>
YOU CAN APPEAL THIS BAN ATdiscord.gg/XpVkcmbXa
PLEASE SPECIFY THE BAN IDWHEN APPEALING (#<UNIQUE_BAN_ID>)
Requirements:
Display the actual banned player's information.
Never hardcode example usernames.
Display actual ban date.
Display actual remaining duration.
Display unique Ban ID.
Display actual ban reason.
Keep ban information consistent when reconnecting.
Automatically allow joining after expiration.
Use PATHALAM GUARD branding only.
Never use Matrix Guard or Matrix branding.
Use the supported server-side disconnect component API. Do not claim to modify the client's actual Minecraft GUI.
- BAN ID SYSTEM
Every ban must have a unique ID.
Example:66899E
Requirements:
Automatically generate unique IDs.
Prevent duplicate IDs.
Store IDs permanently.
Allow staff to search bans using IDs.
Display IDs on ban screens.
Never display IDs in chat alerts.
- EVIDENCE LOGGING SYSTEM
When duplication is confirmed, save:
Actual player username.
Player UUID.
Detection type.
Detection reason.
Item information.
Item quantities.
Detection timestamp.
World information.
Relevant transaction history.
Unique Ban ID.
For hopper and bundle detections, additionally record:
Relevant hopper transaction information.
Bundle contents before and after.
Item quantity changes.
Related inventory transaction records.
Evidence must be accessible to authorized staff.
Avoid unnecessary inventory scanning and excessive data collection.
- STAFF COMMANDS
Implement:
/pathalamguard
Main plugin information.
/pg alerts
Enable or disable staff alerts.
/pg inspect <player>
Inspect available detection records.
/pg logs <player>
View detection history.
/pg ban <player>
Manually issue a 3-day ban.
/pg unban <player>
Remove a ban.
/pg baninfo <banid>
View detailed ban information.
/pg reload
Reload configuration.
/pg info
Display plugin version and status.
- PERMISSIONS
Create:
pathalamguard.adminpathalamguard.alertspathalamguard.inspectpathalamguard.bypass
Only authorized staff should access administrative commands and evidence.
- CONFIGURATION
Create a fully customizable config.yml.
Allow administrators to configure:
Ban duration.
Detection sensitivity.
Automatic banning.
Staff alert messages.
Ban screen messages.
Discord appeal link.
Individual detection modules.
Hopper detection.
Bundle detection.
Logging settings.
Permissions.
Default configuration:
Plugin Name: PATHALAM GUARDBan Duration: 3 DaysAppeal Link: https://discord.gg/XpVkcmbXaAutomatic Ban: Enabled after confirmed detection
Provide a detection-only testing mode.
- DATABASE
Use SQLite for persistent storage.
Store:
Ban records.
Unique Ban IDs.
Player UUIDs.
Player usernames.
Detection logs.
Evidence records.
Ban expiration timestamps.
Hopper and bundle transaction evidence.
All information must survive server restarts.
Expired bans must be handled automatically.
- PERFORMANCE OPTIMIZATION
Performance is extremely important.
Requirements:
No unnecessary TPS drops.
No expensive repeating tasks.
Efficient event listeners.
Lightweight detection.
Efficient database operations.
Safe asynchronous processing.
Never access Bukkit world or inventory APIs asynchronously unless explicitly thread-safe.
No memory leaks.
Avoid excessive disk writes.
Optimize for high-player-count Anarchy servers.
- PROJECT STRUCTURE
Organize the project professionally.
Create separate classes or modules for:
Main plugin class.
Detection manager.
Inventory detection.
Container detection.
Hopper detection.
Bundle detection.
Ban manager.
Ban ID generator.
Evidence manager.
Alert manager.
Database manager.
Command manager.
Configuration manager.
Message manager.
Include:
plugin.yml
config.yml
Complete Java source files.
build.gradle or pom.xml.
Installation instructions.
Permissions documentation.
- TESTING REQUIREMENTS
Test on the actual target Purpur version.
Test:
Normal inventory interactions.
Legitimate item transfers.
Chest interactions.
Shulker box interactions.
Hopper transactions.
Bundle interactions.
Hopper + Bundle transactions.
Detection accuracy.
False-positive prevention.
Automatic 3-day bans.
Unique Ban ID generation.
Ban screen formatting.
Reconnecting while banned.
Automatic unbanning after expiration.
Server restarts.
Database persistence.
Performance under load.
Create controlled test cases for every supported detection module.
Do not enable automatic punishment until detection has passed its tests.
- FINAL DEVELOPMENT REQUIREMENTS
Build a complete, functional, production-ready Minecraft plugin.
PLUGIN NAME: PATHALAM GUARD
TARGET SERVER: PURPUR 26.2
MAIN FEATURES:
- Advanced Dupe Detection.
- Hopper + Bundle Dupe Detection.
- Automatic 3-Day Bans.
- Staff Chat Alerts.
- Unique Ban ID System.
- Custom Ban Screen.
- Evidence Logging.
- SQLite Database.
- Staff Commands.
- Configurable Settings.
- Performance Optimization.
Do not provide pseudocode or incomplete examples.
Do not leave unfinished methods or placeholder implementations.
Generate the complete project with all source files and a successfully buildable JAR.
Provide clear build and installation instructions.
Do not falsely claim that unsupported duplication exploits are detected. Document detection limitations honestly.
I’ll build the persistent ban and staff tools alongside conservative transaction monitoring. Automatic punishment will remain disabled until a detection can be validated on the target server; ordinary hopper and bundle use won’t be treated as proof of duplication.
Created PATHALAM GUARD with persistent manual temporary bans, ban-ID lookup, staff commands, and observational hopper/bundle logging.
Automatic dupe detection and punishment are not implemented: the recorded transactions cannot establish duplication or attribute it to a player. The README documents the limits and a validation checklist.
A build and testing on Purpur 26.2 could not be verified here. Use Compile in Kodari to build and download the jar.
package com.pathalamguard;
import org.bukkit.plugin.java.JavaPlugin;
public final class PathalamGuard extends JavaPlugin {
private DatabaseManager database;
private BanManager bans;
@Override
public void onEnable() {
saveDefaultConfig();
try {
database = new DatabaseManager(this);
bans = new BanManager(this, database);
} catch (Exception e) {
getLogger().severe("Unable to initialize ban database: " + e.getMessage());
getServer().getPluginManager().disablePlugin(this);
return;
}
AlertManager alerts = new AlertManager(this);
EvidenceManager evidence = new EvidenceManager(this, database);
DetectionManager detection = new DetectionManager(this, evidence);
getServer().getPluginManager().registerEvents(detection, this);
getServer().getPluginManager().registerEvents(bans, this);
CommandManager commands = new CommandManager(this, database, bans, alerts);
getCommand("pathalamguard").setExecutor(commands);
getCommand("pathalamguard").setTabCompleter(commands);
getLogger().warning("Transaction monitoring is observational only; no automatic dupe bans are issued.");
}
@Override
public void onDisable() {
if (database != null) database.close();
}
}