wasamitoobad_6978

Create a Minecraft moderation plugin that improves the default punishment system and gives staff better control over players.

The plugin should allow moderators and admins to manage players using commands like /mute, /tempmute, /kick, and /ban with customizable punishments and automated moderation features.

Required features:

* /mute command * /tempmute command with custom duration * /kick command with custom reason * /ban and /tempban commands * Automatic mute system for slurs, spam, or toxic language * Configurable blacklist/blocked words * Custom punishment messages * Staff notification alerts * Permission-based moderation system * Punishment history/logs for each player * Configurable cooldowns and warning system * Lightweight and optimized * Support for modern Paper/Spigot servers

Example:

* Player uses a slur → automatically muted for 10 minutes * Staff command: /mute Lewis Toxic behavior

Optional features:

* INVENTORY GUI moderation panel * Discord webhook logs * IP mute/IP ban * Warning system * Appeal system support * Integration with LuckPerms and PlaceholderAPI

Language: Java Platform: Paper/Spigot Minecraft Server Plugin

Kodari AI
KodariMay 11 at 5:23 am 27,216 (v2)

I’ll create a comprehensive moderation plugin with GUI support, automated filtering, and Discord integration.

ModGuard
A comprehensive moderation plugin providing advanced punishment management, automated chat filtering, and staff tools. Features include mute/kick/ban commands, temporary punishments, configurable word filters, punishment history, staff alerts, and GUI moderation panel. Includes Discord webhook integration and supports LuckPerms/PlaceholderAPI.

Analysis

Building a full-featured moderation system with:

  • Command-based punishments (mute/kick/ban with temp variants)

  • Automated chat filtering with configurable blacklist

  • GUI moderation panel using the inventory framework

  • JSON-based punishment storage

  • Discord webhook logging

  • Warning system with auto-escalation

Complete moderation system created with all requested features. The plugin includes comprehensive punishment commands, automated chat filtering, GUI moderation panel, Discord webhook integration, and warning system with auto-escalation.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 2,424
src/main/java/com/modguard/ModGuard.java
package com.modguard;

import com.modguard.command.*;
import com.modguard.inventory.gui.GUIListener;
import com.modguard.inventory.gui.GUIManager;
import com.modguard.listener.ChatListener;
import com.modguard.listener.JoinListener;
import com.modguard.manager.ConfigManager;
import com.modguard.manager.DiscordManager;
import com.modguard.manager.FilterManager;
import com.modguard.manager.PunishmentManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

public class ModGuard extends JavaPlugin {
    private ConfigManager configManager;
    private PunishmentManager punishmentManager;
    private FilterManager filterManager;
    private DiscordManager discordManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.punishmentManager = new PunishmentManager(this);
        this.filterManager = new FilterManager(this);
        this.discordManager = new DiscordManager(this);
        this.guiManager = new GUIManager();
        
        this.registerCommands();
        this.registerListeners();
        this.startTasks();
        
        this.getLogger().info("ModGuard has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.punishmentManager.save();
        this.getLogger().info("ModGuard has been disabled!");
    }
    
    private void registerCommands() {
        this.getCommand("mute").setExecutor(new MuteCommand(this));
        this.getCommand("tempmute").setExecutor(new TempMuteCommand(this));
        this.getCommand("unmute").setExecutor(new UnmuteCommand(this));
        this.getCommand("kick").setExecutor(new KickCommand(this));
        this.getCommand("ban").setExecutor(new BanCommand(this));
        this.getCommand("tempban").setExecutor(new TempBanCommand(this));
        this.getCommand("unban").setExecutor(new UnbanCommand(this));
        this.getCommand("warn").setExecutor(new WarnCommand(this));
        this.getCommand("check").setExecutor(new CheckCommand(this));
        this.getCommand("modpanel").setExecutor(new ModPanelCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
    }
    
    private void startTasks() {
        int interval = this.configManager.getCheckInterval();
        
        new BukkitRunnable() {
            @Override
            public void run() {
                punishmentManager.checkExpired();
                punishmentManager.checkWarningDecay();
            }
        }.runTaskTimer(this, interval * 20L, interval * 20L);
    }
    
    public ConfigManager getConfigManager() {
        return this.configManager;
    }
    
    public PunishmentManager getPunishmentManager() {
        return this.punishmentManager;
    }
    
    public FilterManager getFilterManager() {
        return this.filterManager;
    }
    
    public DiscordManager getDiscordManager() {
        return this.discordManager;
    }
    
    public GUIManager getGuiManager() {
        return this.guiManager;
    }
}