chrosticey

I want to makeCreate a professional Minecraft moderation plugin for Paper (1.20+), fully integrated with Discord using JDA.

Plugin Name: DiscordModBridge

IMPORTANT:

  • ALL Discord commands must be SLASH COMMANDS only.
  • NO prefix commands.
  • All responses must be clean, modern, and beautiful embed messages.
  • Use buttons, modals, select menus where necessary.
  • Use proper async handling.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

1๏ธโƒฃ Discord System Requirements

  • Use JDA (latest stable version).
  • Slash commands only.
  • Use:

- Buttons - Action Rows - Select Menus - Modals (for forms like whitelist apply)

  • Role-based permission system (Admin, Moderator, Helper etc).
  • Verify Discord user must be linked to Minecraft account before using moderation commands.
  • Secure execution system.

Embed Requirements:

  • Clean, professional style.
  • Configurable embed color.
  • Footer: Server Name + Timestamp.
  • Show moderator name + avatar.
  • Use thumbnails (player head when applicable).
  • Clear status indicators (โœ… Success / โŒ Failed / โณ Pending).

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

2๏ธโƒฃ Moderation Commands (ALL SLASH COMMANDS)

/ban player reason duration(optional) /unban player /banlist

/mute player reason duration(optional) /unmute player

/kick player reason

/playerinfo player

All must:

  • Respond with rich embeds.
  • Log to specific Discord channels.
  • Store logs in:

plugins/DiscordModBridge/logs/ bans/ mutes/ kicks/ whitelist/ inventory-access/

Temporary punishments must auto-expire and:

  • Update log
  • Edit Discord log message to show "Punishment Finished"

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

3๏ธโƒฃ Advanced Whitelist System

Whitelist Commands:

For Java Edition: /whitelist add <player> /whitelist remove <player> /whitelist list

For Bedrock Edition: /fwhitelist add <player> /fwhitelist remove <player> /fwhitelist list

Separate permissions for Java and Bedrock whitelist.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

4๏ธโƒฃ Whitelist Apply System (NEW FEATURE)

Slash Command: /whitelistapply

When used:

  • Open a Discord MODAL form.
  • Fields:

- Minecraft Username - Age - Why do you want to join? - Previous server experience?

After submission:

  • Send embed to STAFF REVIEW CHANNEL.
  • Embed must include:

- Applicant Discord mention - Linked Minecraft account - All answers - Status: โณ Pending

Below embed add buttons:

  • โœ… Approve (Java)
  • ๐ŸŒŠ Approve (Bedrock)
  • โŒ Reject

When staff clicks:

  • Automatically run:

whitelist add <player> (if Java approved) fwhitelist add <player> (if Bedrock approved)

  • Edit original embed:

Status: โœ… Approved by <staff> or Status: โŒ Rejected by <staff>

  • Log action in whitelist logs channel.

Prevent:

  • Double approval
  • Non-staff interaction
  • Multiple pending applications per user

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

5๏ธโƒฃ Player Info System

/playerinfo <player>

Embed must show:

  • UUID
  • IP Address
  • First Join
  • Last Seen
  • Playtime
  • World
  • Coordinates
  • Gamemode
  • Ban history
  • Mute history

Thumbnail:

  • Fetch player head from Mojang API.

Below embed add buttons:

  • ๐Ÿ“ฆ View Inventory
  • ๐Ÿ”ฎ View Ender Chest

When clicked:

  • Open INVENTORY GUI in Minecraft for staff.
  • Read-only mode toggle.
  • Log inventory access.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

6๏ธโƒฃ Discord โ†” Minecraft Link System

/link (in Minecraft) โ†’ generate code /discordlink <code> (slash command) /unlink /linklist

Requirements:

  • Store Discord ID + UUID mapping.
  • Prevent duplicate linking.
  • Required before using moderation commands.

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

7๏ธโƒฃ Config Requirements

config.yml must include:

  • Bot Token
  • Guild ID
  • Channel IDs:

- ban-logs - mute-logs - kick-logs - whitelist-logs - application-channel - player-logs

  • Role IDs for:

- Admin - Moderator - Staff

  • Embed color
  • Enable/disable features
  • Database type (YAML or SQLite)

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

8๏ธโƒฃ Security

  • Only linked Discord users with required roles can execute moderation.
  • All heavy tasks async.
  • No main thread blocking.
  • Java 17 compatible.
  • Clean OOP architecture:

- BanManager - MuteManager - WhitelistManager - LinkManager - DiscordManager - InventoryManager - ApplicationManager

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Output Required:

  • Full source code
  • Maven or Gradle structure
  • plugin.yml
  • example config.yml
  • Setup instructions
  • Discord bot setup guide
  • Proper error handling
  • Clean documentation
Kodari AI
KodariFeb 24 at 3:26 pm 28,079 (v2)

Iโ€™ll create a professional Discord moderation bridge plugin with full JDA integration, slash commands, and advanced features.

DiscordModBridge
Professional Minecraft moderation plugin with full Discord integration. Features slash commands for ban/mute/kick management, separated Java and Bedrock whitelist systems, Discord modal-based whitelist applications, player info with inventory viewing, Discord-Minecraft account linking, and comprehensive logging with rich Discord embeds.

Continuing with remaining manager and Discord integration filesโ€ฆ

chrosticey

Everything done ?

Kodari AI
KodariFeb 24 at 3:30 pm 29,928 (v2)

I need to check the project state to give you an accurate answer. Let me examine the key files:

Analysis

No - there are critical issues:

  1. Dead code package - The entire com.discord.modbridge package is unused duplicate code that should be deleted (plugin.yml points to com.discordmodbridge)

  2. No XSeries usage - Despite guidelines requiring XSeries for cross-version compatibility, the code doesnโ€™t use it anywhere (could break on different MC versions)

  3. Missing classes referenced - Several utility classes are referenced but let me verify they exist:

Summary: The active com.discordmodbridge package appears complete and functional. However:

Critical Issues:

1. Dead Code (Major Cleanup Needed)

The entire com/discord/modbridge/ package is unused duplicate code:

  • 30+ files that will NEVER run

  • Different architecture (model classes, different DataManager)

  • Wastes space and causes confusion

  • Should be completely deleted

2. Build System

Current setup uses manifest.kod with JDA - this should work with Kodinternal but was never tested. The implementation 'net.dv8tion:JDA:5.2.1' in build.gradle requires runtime availability.

3. No XSeries Usage

Code doesnโ€™t use XSeries for cross-version compatibility - could break on different Minecraft versions.

Should I:

  1. Delete the dead com.discord.modbridge package (recommended)

  2. Leave as-is (functional but messy)

  3. Something else?

The active implementation in com.discordmodbridge has all required files, proper imports, method definitions, and cross-file consistency. It should compile and run, but the dead code should be removed for maintainability.

chrosticey

Do what you feel is good and also add commands distribution for staff mod and admin.

Kodari AI
KodariFeb 24 at 3:34 pm 31,829 (v2)

Iโ€™ll analyze the project and improve it, then add proper role-based command distribution for staff, mod, and admin.

Now Iโ€™ll clean up the project, remove duplicates, and implement a proper role-based permission system for Discord commands.

Analysis:

  • Duplicate package structures need to be removed (com.discord.modbridge vs com.discordmodbridge)

  • No clear role hierarchy - all commands just check โ€œhasStaffRole()โ€

  • Need to distribute commands: Staff (basic viewing) โ†’ Moderator (punishments) โ†’ Admin (full control)

Cleaned up duplicate package, implemented role-based command distribution (Staffโ†’Moderatorโ†’Admin), added /permissions command to check Discord roles, and improved permission checks across all commands.

chrosticey

Now finally add a command /help. For players it should give a rich clean embed with steps for link and whitelist application. And /help cmds for staff to see format of commands and also can you do like when we run /ban , /unban , /mute , /unmute etc command in discord it should give options for player section who ever played in server and for /kick it should give options of online players

Kodari AI
KodariFeb 24 at 3:40 pm 52,807 (v2)

Iโ€™ll add a /help command for Discord with rich embeds and autocomplete for player selection in moderation commands.

Iโ€™ll add a /help command with rich embeds and autocomplete for player selection in moderation commands.

Now Iโ€™ll update the DiscordManager and DiscordEventListener to register the help command and add autocomplete:

Now I need to update the command data to enable autocomplete for the player options:

Now let me create the HelpCommand file:

Now I need to add the autocomplete event handler to DiscordEventListener:

Now I need to add the getAllPlayerData method to DataManager:

All files have been created and updated. The /help command now provides rich embeds with player guides and staff command formats, and all moderation commands now have autocomplete for player selection - /kick shows only online players while /ban, /unban, /mute, /unmute, and /playerinfo show all players who have joined the server.

chrosticey

Can u separate the help command for player and for staff like /help and /helpcmd

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
85 5,601
src/main/java/com/discordmodbridge/DiscordModBridge.java
package com.discordmodbridge;

import com.discordmodbridge.commands.LinkCommand;
import com.discordmodbridge.commands.MainCommand;
import com.discordmodbridge.data.DataManager;
import com.discordmodbridge.discord.DiscordManager;
import com.discordmodbridge.inventory.gui.GUIManager;
import com.discordmodbridge.listeners.PlayerJoinListener;
import com.discordmodbridge.listeners.PlayerQuitListener;
import com.discordmodbridge.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

@Getter
public class DiscordModBridge extends JavaPlugin {
    
    @Getter
    private static DiscordModBridge instance;
    
    private ConfigManager configManager;
    private DataManager dataManager;
    private DiscordManager discordManager;
    private BanManager banManager;
    private MuteManager muteManager;
    private KickManager kickManager;
    private WhitelistManager whitelistManager;
    private LinkManager linkManager;
    private ApplicationManager applicationManager;
    private InventoryManager inventoryManager;
    private LogManager logManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        instance = this;
        
        saveDefaultConfig();
        createDirectories();
        
        configManager = new ConfigManager(this);
        logManager = new LogManager(this);
        dataManager = new DataManager(this);
        dataManager.initialize();
        
        linkManager = new LinkManager(this);
        banManager = new BanManager(this);
        muteManager = new MuteManager(this);
        kickManager = new KickManager(this);
        whitelistManager = new WhitelistManager(this);
        applicationManager = new ApplicationManager(this);
        inventoryManager = new InventoryManager(this);
        guiManager = new GUIManager();
        
        discordManager = new DiscordManager(this);
        discordManager.initialize();
        
        registerCommands();
        registerListeners();
        
        banManager.startExpirationTask();
        muteManager.startExpirationTask();
        
        getLogger().info("DiscordModBridge has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (discordManager != null) {
            discordManager.shutdown();
        }
        
        if (dataManager != null) {
            dataManager.close();
        }
        
        getLogger().info("DiscordModBridge has been disabled!");
    }
    
    private void createDirectories() {
        new File(getDataFolder(), "logs/bans").mkdirs();
        new File(getDataFolder(), "logs/mutes").mkdirs();
        new File(getDataFolder(), "logs/kicks").mkdirs();
        new File(getDataFolder(), "logs/whitelist").mkdirs();
        new File(getDataFolder(), "logs/inventory-access").mkdirs();
        new File(getDataFolder(), "logs/applications").mkdirs();
    }
    
    private void registerCommands() {
        getCommand("link").setExecutor(new LinkCommand(this));
        getCommand("dmb").setExecutor(new MainCommand(this));
        getCommand("permissions").setExecutor(new com.discordmodbridge.commands.PermissionsCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new com.discordmodbridge.listeners.ChatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new com.discordmodbridge.inventory.gui.GUIListener(guiManager), this);
    }
    
    public void reload() {
        reloadConfig();
        configManager = new ConfigManager(this);
        
        if (discordManager != null) {
            discordManager.shutdown();
        }
        
        discordManager = new DiscordManager(this);
        discordManager.initialize();
    }
}