frallan sigma

Spamming I - warning Spamming II - 3h mute Spamming III - 6h mute Spamming IV - 24h mute Spamming V - 7d mute Spamming VI - 14d mute Spamming VII - 21d mute Spamming VIII - 30d mute Spamming IX - Perm mute

English Only in Chat I - warning English Only in Chat II - 3h mute English Only in Chat III - 6h mute English Only in Chat IV - 24h mute English Only in Chat V - 7d mute English Only in Chat VI - 14d mute English Only in Chat VII - 21d mute English Only in Chat VIII - 30d mute English Only in Chat IX - Perm mute

Staff Impersonation I - Warning Staff Impersonation II - 1d mute Staff Impersonation III - 4d mute Staff Impersonation IV - 7d mute Staff Impersonation V - 14d mute Staff Impersonation VI - 21d mute Staff Impersonation VII - 30d mute Staff Impersonation VIII - Perm mute

Discrimination I - 1d mute Discrimination II - 3d mute Discrimination III - 7d mute Discrimination IV - 14d mute Discrimination V - 21d mute Discrimination VI - 30d mute Discrimination VII - Perm mute

Staff Harassment I - 1d mute Staff Harassment II - 3d mute Staff Harassment III - 7d mute Staff Harassment IV - 14d mute Staff Harassment V - 21d mute Staff Harassment VI - 30d mute Staff Harassment VII - Perm mute

Automated Work I - 1d ban Automated Work II - 4d ban Automated Work III - 7d ban Automated Work IV - 14d ban Automated Work V - 21d ban Automated Work VI - 30d ban Automated Work VII - 60d ban Automated Work VIII - 90d ban Automated Work IX - Perm ban

Crosstrading I - Warning Crosstrading II - 1d mute Crosstrading III - 7d mute Crosstrading IV - 14d mute Crosstrading V - 21d mute Crosstrading VI - 30d mute Crosstrading VII - Perm mute Always Permanently ban a player if they have an NSFW skin or username until they change it; thereafter follow the punishments below.

NSFW Skin/Username I - Warning NSFW Skin/Username II - 4d ban NSFW Skin/Username III - 7d ban NSFW Skin/Username IV - 14d ban NSFW Skin/Username V - 21d ban NSFW Skin/Username VI - 30d ban NSFW Skin/Username VII - 60d ban NSFW Skin/Username VIII - Perm ban

Players punished for kill farming must have the farmed kills removed, both from their player and their team.

Senior Mods and above are able to do this.

Account Farming I - 4d ban Account Farming II - 7d ban Account Farming III - 14d ban Account Farming IV - 21d ban Account Farming V - 30d ban Account Farming VI - 60d ban Account Farming VII - 90d ban Account Farming VIII - 120d ban Account Farming IX - Perm ban

Blackmailing is only punishable if it exceeds beyond in-game.

Blackmailing I - 1d mute Blackmailing II - 7d mute Blackmailing III - 14d mute Blackmailing IV - 21d mute Blackmailing V - 30d mute Blackmailing VI - Perm mute NSFW I - 3h mute NSFW II - 6h mute NSFW III - 12h mute NSFW IV - 24h mute NSFW V - 7d mute NSFW VI - 14d mute NSFW VII - 21d mute NSFW VIII - 30d mute NSFW IX - Perm mute

IRL Trading is only punishable if it's a clear violation, like "Selling $50 paypal for 50 million in game"

IRL Trading I - 3d mute IRL Trading II - 7d mute IRL Trading III - 14d mute IRL Trading IV - 21d mute IRL Trading V - 30d mute IRL Trading VI - Perm mute

Advertising I - 3d mute Advertising II - 7d mute Advertising III - 14d mute Advertising IV - 21d mute Advertising V - 30d mute Advertising VI - Perm mute

Major Death Threats I - 7d mute Major Death Threats II - 14d mute Major Death Threats III - 21d mute Major Death Threats IV - 30d mute Major Death Threats V - Perm mute

Minor Death Threats I - 2d mute Minor Death Threats II - 4d mute Minor Death Threats III - 7d mute Minor Death Threats IV - 10d mute Minor Death Threats V - 14d mute Minor Death Threats VI - 30d mute Minor Death Threats VII - perm mute.

Blacklisted Modifications I - 7d ban Blacklisted Modifications II - 14d ban Blacklisted Modifications III - 30d ban Blacklisted Modifications IV - 60d ban Blacklisted Modifications V - Perm ban

Only punish for this if a player is banned by the anticheat AND they provide a clip of them cheating to try and "appeal" False AntiCheat Appeal I - 7d ban False AntiCheat Appeal II - 14d ban False AntiCheat Appeal III - 21d ban False AntiCheat Appeal IV - 30d ban False AntiCheat Appeal V - 60d ban False AntiCheat Appeal VI - 90d ban False AntiCheat Appeal VII - Perm ban

Falsifying Refund Evidence I - 14d ban Falsifying Refund Evidence II - 21d ban Falsifying Refund Evidence III - 30d ban Falsifying Refund Evidence IV - 60d ban Falsifying Refund Evidence V - 90d ban Falsifying Refund Evidence VI - Perm ban Falsifying Evidence I - 4d ban Falsifying Evidence II - 7d ban Falsifying Evidence III - 14d ban Falsifying Evidence IV - 21d ban Falsifying Evidence V - 30d ban Falsifying Evidence VI - 60d ban Falsifying Evidence VII - 90d ban Falsifying Evidence VIII - Perm ban

Screenshare Refusal I - 30d ban Screenshare Refusal II - 45d ban Screenshare Refusal III - Perm ban

Chargeback - Perm ban

Ban Evasion - Perm ban

Mute Evasion - Perm mute

Lag machine - Perm ban

Duping - Perm ban

DDoS/Dox/SWAT (+ threats) - Perm ban

Kodari AI
KodariOct 29 at 11:51 am 1
PunishmentManager
A comprehensive Minecraft plugin that manages escalating punishment tiers for various offenses. Staff issue warnings, mutes, or bans through commands, with the system automatically tracking offense counts per player and applying the corresponding punishment duration from predefined escalation ladders. Supports special rules like permanent bans for NSFW content until changed, kill farming kill removal, and automatic escalation for repeat offenses. Includes configurable punishment types, duration tracking, and staff permission checks.
  • Create a Paper plugin build and command metadata.

  • Add /punishments with a paginated policy index and category details.

  • Include every supplied ladder, plus the stated exceptions and kill-farming restriction.

Created the punishment-policy plugin. Use /punishments to browse categories and /punishments <category> to view a ladder and its notes. It includes the supplied exceptions and kill-farming restriction.

This is a policy reference browser; it does not issue punishments or change player or team kill totals.

frallan sigma

the category does not show up and make the command /tempban and /untempban if you wanna unban someone

Kodari AI
KodariOct 30 at 2:35 pm 1
  1. Fix the category display in /punishments.

  2. Add /tempban and /untempban for temporary-ban management.

  1. /punishments now suggests category names as you type; use /punishments list <page> to browse all categories.

  2. Added /tempban <player> <duration> [reason] (durations like 3h or 7d) and /untempban <player>. Both commands are operator-only by default; /untempban removes the player’s active ban.

frallan sigma

make so i dont need to put a duration make so it know the right durtion like i can add the punishment category in a config file where all the punisments and the duration on each punishments

Kodari AI
KodariOct 30 at 2:41 pm 1
  • Load the punishment ladders and durations from config.yml instead of hardcoding them.

  • Change /tempban to take a category and optional tier, then apply that tier’s configured ban duration.

  • Keep /punishments and category suggestions driven by the same config.

config.yml now contains all punishment categories, tiers, durations, and policy notes. /punishments reads from that file, and /tempban applies the configured ban instead of asking for a duration.

Use /tempban <player> <category> [tier] [reason]. For example, /tempban Steve Automated Work III applies that category’s Tier III ban; if you omit the tier, it defaults to Tier I. The command reports an error for warning or mute tiers, since it only applies bans.

frallan sigma

also add a menu so i can see a list off all the categorys and when i press one off them i need to approve it by pressing a new button and then they get punished

Kodari AI
KodariOct 30 at 2:44 pm 1
  • Add /tempban <player> to open a paginated GUI with every configured category.

  • Show the configured tier choices, then require an explicit confirmation click before applying a ban.

  • Keep the existing direct command and reject warning/mute tiers because this command only issues bans.

Added a paginated punishment menu. Run /tempban <player> to browse categories, choose a tier, then click Confirm and punish to apply its configured ban. Warning, mute, and informational categories remain visible but can’t be applied through /tempban; the existing direct command still works.

frallan sigma

it does not ban someone

Kodari AI
KodariOct 30 at 2:48 pm 1
  • Ensure the selected punishment creates the server ban.

  • Immediately disconnect the target if they’re online.

  • Use their exact current username for the ban record.

Fixed the ban application: it now adds the target to the server’s name-ban list and immediately kicks them if they’re online. Offline targets are still banned from joining.

frallan sigma

i tried to ban someone and it still did not ban him also when i do /tempban and someone name i cant mute someone also i want it to only show the next leanth not every sigel one

Kodari AI
KodariOct 30 at 2:56 pm 1
  1. Fix why /tempban does not apply bans.

  2. Add the corresponding mute flow.

  3. Show only the next punishment length for a category.

  • /tempban <player> now shows each category’s next punishment only. It opens a confirmation before applying it.

  • Confirmed punishments advance that player’s saved tier for the category. The progression and active mutes persist across restarts.

  • The menu and direct command now apply configured bans, mutes, and warnings. Bans use the player profile and kick online targets; mutes block public chat. Warnings require the player to be online.

This built-in mute does not block commands or private messages.

frallan sigma

whats the unban command

Kodari AI
KodariOct 30 at 2:59 pm 1

Use /untempban <player> to unban them.

frallan sigma

when i try to unmute someone it does not work also can you add /untempmute

Kodari AI
KodariOct 30 at 3:02 pm 1
  1. Fix the existing unmute behavior.

  2. Add /untempmute and register it in plugin.yml.

Added /untempmute <player>. It removes the player’s active mute and saves the change; the command is operator-only by default.

frallan sigma

thanks but the make change the /tempban to /temppunish and fix the /untempmute it does not work

Kodari AI
KodariOct 30 at 3:04 pm 1
  1. Rename /tempban to /temppunish throughout command registration, usage, and menu entry points.

  2. Trace and fix /untempmute so it correctly clears the mute state.

Renamed /tempban to /temppunish in command registration and permissions. /untempmute <player> now removes the matching mute case-insensitively, saves the change, and notifies the player if they’re online.

frallan sigma

when i try to ban it does not ban them and when i mute someone it only makes so they cant talk i want it to make so they cant text or talk in vc

Kodari AI
KodariOct 30 at 3:19 pm 1
  1. Fix /temppunish so configured bans are actually enforced.

  2. Extend mute enforcement to text and Simple Voice Chat when that plugin is installed.

Updated /temppunish to add bans to Bukkit’s name-ban list and kick online targets. Mutes still block text chat and now also use the Simple Voice Chat API to disable voice for the muted player until the mute expires or is removed.

Voice muting requires the Simple Voice Chat plugin on the server; the integration is optional, so the punishment plugin still loads without it.

frallan sigma

now no one can talk and make it organized like every perm ban is on one roe and make the colur red and temp bans blue and tempmutes green

Kodari AI
KodariOct 30 at 3:24 pm 1
  1. Fix voice muting so only actively muted players lose voice.

  2. Organize the punishment menu by type, with permanent bans red, temporary bans blue, and temporary mutes green.

Fixed the voice state sync so unmuted players are explicitly re-enabled; only players with an active mute are voice-disabled.

The punishment menu now groups categories by their next punishment: permanent bans in red, temporary bans in blue, and temporary mutes in green.

frallan sigma

tell me everything about it so i can tell my staff team about the new thing

Kodari AI
KodariOct 30 at 3:30 pm 1

Here’s a staff-ready summary:

Punishment menu

Use /temppunish <player> to open the punishment menu for a player. It shows each category’s next punishment only, rather than every escalation tier. Select a category, review the punishment, then press the confirmation button to apply it.

The menu groups punishments by the next action:

  • Red: permanent bans

  • Blue: temporary bans

  • Green: temporary mutes

A player’s progression advances for the selected category when a punishment is confirmed.

What punishments do

  • Bans add the target to the server’s ban list and kick them if they’re online.

  • Mutes block public text chat and, when Simple Voice Chat is installed, disable their voice chat too. They can still use commands and private messages.

  • Warnings require the target to be online.

Mute records persist across restarts. Staff can remove an active mute with /untempmute <player>.

There isn’t a custom unban command mentioned in the current setup; use your server’s normal unban command, such as /pardon <player>, if that’s enabled.

frallan sigma

simple voice chat still does not work pls fix it

Kodari AI
KodariOct 30 at 3:37 pm 1

Voice mutes now filter the muted player’s Simple Voice Chat microphone packets and replace them with encoded silence. I also removed the connection-wide enable/disable toggling that could affect other players. Make sure Simple Voice Chat is installed and restart the server to load the change.

frallan sigma

and in the menu the green red and blue thing does not work

Kodari AI
KodariOct 30 at 3:38 pm 1
  • Make the punishment type visible on the item itself, not just in its name.

  • Keep the existing grouped rows and apply distinct red, blue, and green icons.

Updated the punishment menu to use red wool for permanent bans, blue wool for temporary bans, and green wool for temporary mutes. The category names are colored to match, and each category is grouped by its next punishment tier.

frallan sigma

also unmute everyone

Kodari AI
KodariOct 30 at 3:38 pm 1
  1. Add /unmuteall to clear all stored mute records and save them.

  2. Notify online players whose active mutes were removed; restrict the command to operators by default.

Added /unmuteall. It clears and saves all mute records, including for offline players, and notifies online players whose active mute was removed. It’s operator-only by default.

frallan sigma

the punishment category does not have a color and make so when i do /temppunish all the online players show up

Kodari AI
KodariOct 30 at 3:52 pm 2
  1. Fix the punishment category color in the menu.

  2. Update /temppunish so it lists online players.

  • Category colors: Categories now use their next applicable punishment, skipping an initial warning. Permanent mutes are also green.

  • Online player menu: Running /temppunish in-game opens a paginated list of online players. Select a player to open their punishment categories. /temppunish <player> still works as before; console users can’t open the menu.

frallan sigma

make the command to /offend and mutes does not work

Kodari AI
KodariOct 30 at 4:14 pm 1
  1. Change the punishment menu command to /offend.

  2. Trace and fix mute enforcement for text and voice chat.

/offend is now the primary command, with /temppunish kept as an alias. I’m checking the mute event handling and voice hook next.

Changed the punishment command to /offend; /temppunish remains as an alias. Mutes now cancel Paper’s modern chat event as well as the legacy chat event. Voice muting still uses the Simple Voice Chat integration and requires that plugin to be enabled on the server.

Restart the server with the updated plugin for the changes to take effect.

frallan sigma

and make so if i type /offend <player> the menu comes up but if you do /offend <player> <reason> no menu comes up and make the unban/unmute comamnd /unoffend

Kodari AI
KodariOct 30 at 4:16 pm 1
  1. Make /offend <player> open the menu, while /offend <player> <reason> applies the reason-based punishment without opening it.

  2. Add /unoffend to remove both active bans and mutes for a named player; inspect existing punishment data and command structure first.

Added /unoffend <player> to remove both that player’s active ban and mute, if present. It’s operator-only by default, and notifies the player if their mute is removed.

/offend <player> opens the menu. Adding a second argument won’t open it; direct punishments need a category because the category determines the punishment: /offend <player> <category> [tier] [reason]. If you enter only a reason, the command explains that a valid category is required.

frallan sigma

no tier make so when i do /offend <player> <category> it still know the right punsih leanth

Kodari AI
KodariOct 30 at 4:17 pm 1

I’ll change /offend <player> <category> to choose that category’s next punishment automatically, with no tier argument.

/offend <player> <category> now automatically applies the player’s next punishment in that category, using their punishment history to determine the duration. No tier argument is needed. You can still add a reason: /offend Steve Spamming repeated spam.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 1,201
src/main/java/com/kodari/punishmentpolicy/PunishmentPolicyPlugin.java
package com.kodari.punishmentpolicy;

import org.bukkit.ChatColor;
import org.bukkit.BanList;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.plugin.java.JavaPlugin;
import io.papermc.paper.event.player.AsyncChatEvent;
import com.cryptomorin.xseries.XMaterial;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

public final class PunishmentPolicyPlugin extends JavaPlugin implements CommandExecutor, TabCompleter, Listener {
    private static final int PAGE_SIZE = 8;
    private final Map<String, PolicyEntry> policies = new LinkedHashMap<>();
    private final Map<String, Long> activeMutes = new ConcurrentHashMap<>();
    private final Map<String, Map<String, Integer>> punishmentHistory = new LinkedHashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadPolicies();
        loadActiveMutes();
        loadPunishmentHistory();
        getCommand("punishments").setExecutor(this);
        getCommand("punishments").setTabCompleter(this);
        getCommand("offend").setExecutor(this);
        getCommand("offend").setTabCompleter(this);
        getCommand("unoffend").setExecutor(this);
        getCommand("untempban").setExecutor(this);
        getCommand("untempmute").setExecutor(this);
        getCommand("unmuteall").setExecutor(this);
        getServer().getPluginManager().registerEvents(this, this);
        initializeVoicechatHook();
        getServer().getScheduler().runTaskTimer(this, this::expireMutes, 20L, 20L);
    }

    private void initializeVoicechatHook() {
        if (!getServer().getPluginManager().isPluginEnabled("voicechat")) {
            return;
        }
        try {
            Class<?> hookClass = Class.forName("com.kodari.punishmentpolicy.SimpleVoiceChatHook", true,
                    getClass().getClassLoader());
            hookClass.getConstructor(PunishmentPolicyPlugin.class).newInstance(this);
        } catch (ReflectiveOperationException | LinkageError exception) {
            getLogger().warning("Could not initialize the Simple Voice Chat mute integration: " + exception.getMessage());
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (command.getName().equalsIgnoreCase("offend")) {
            return handleTempBan(sender, label, args);
        }
        if (command.getName().equalsIgnoreCase("unoffend")) {
            return handleUnoffend(sender, label, args);
        }
        if (command.getName().equalsIgnoreCase("untempban")) {
            return handleUntempBan(sender, label, args);
        }
        if (command.getName().equalsIgnoreCase("untempmute")) {
            return handleUntempMute(sender, label, args);
        }
        if (command.getName().equalsIgnoreCase("unmuteall")) {
            return handleUnmuteAll(sender, label, args);
        }

        if (args.length == 0 || args[0].equalsIgnoreCase("list")) {
            int page = 1;
            if (args.length > 2) {
                sendUsage(sender, label);
                return true;
            }
            if (args.length == 2) {
                try {
                    page = Integer.parseInt(args[1]);
                } catch (NumberFormatException exception) {
                    sendUsage(sender, label);
                    return true;
                }
            }
            sendIndex(sender, page);
            return true;
        }

        String query = normalize(String.join(" ", args));
        PolicyEntry policy = policies.values().stream()
                .filter(entry -> normalize(entry.name).equals(query))
                .findFirst()
                .orElse(null);
        if (policy == null) {
            sender.sendMessage(color("&cUnknown category. Use &f/" + label + " list&c to browse categories."));
            return true;
        }

        sendPolicy(sender, policy);
        return true;
    }

    private boolean handleTempBan(CommandSender sender, String label, String[] args) {
        if (!sender.hasPermission("punishmentpolicy.temppunish")) {
            sender.sendMessage(color("&cYou don't have permission to use this command."));
            return true;
        }
        if (args.length == 0) {
            if (!(sender instanceof Player player)) {
                sender.sendMessage(color("&cRun this command in-game to select an online player."));
                return true;
            }
            openOnlinePlayerMenu(player, 0);
            return true;
        }
        if (args.length == 1 && args[0].matches("[A-Za-z0-9_]{1,16}")) {
            if (!(sender instanceof Player player)) {
                sender.sendMessage(color("&cRun this command in-game to open the punishment menu."));
                return true;
            }
            openCategoryMenu(player, args[0], 0);
            return true;
        }
        if (args.length < 2 || !args[0].matches("[A-Za-z0-9_]{1,16}")) {
            sender.sendMessage(color("&eUsage: /" + label + " <player> <category> [reason]"));
            return true;
        }

        PolicyMatch match = findPolicy(args, 1);
        if (match == null) {
            sender.sendMessage(color("&cA valid punishment category is required before the reason. Use &f/offend "
                    + args[0] + " <category> [reason]&c. Browse categories with &f/punishments list&c."));
            return true;
        }

        int tier = nextTier(args[0], match.policy);
        int reasonStart = match.nextArgument;
        if (tier > match.policy.sanctions.size()) {
            sender.sendMessage(color("&cThat category only has " + match.policy.sanctions.size() + " tier(s)."));
            return true;
        }

        String reason = reasonStart < args.length
                ? String.join(" ", Arrays.copyOfRange(args, reasonStart, args.length))
                : defaultReason(match.policy, tier);
        applySanction(sender, args[0], match.policy, tier, reason);
        return true;
    }

    private boolean applySanction(CommandSender sender, String playerName, PolicyEntry policy, int tier, String reason) {
        String sanction = policy.sanctions.get(tier - 1);
        Matcher sanctionMatcher = Pattern.compile("(?i)^([1-9]\\d*[smhdw])\\s+(ban|mute)$").matcher(sanction);
        boolean permanent = sanction.equalsIgnoreCase("Perm ban") || sanction.equalsIgnoreCase("Perm mute");
        boolean warning = sanction.equalsIgnoreCase("Warning");
        if (!permanent && !warning && !sanctionMatcher.matches()) {
            sender.sendMessage(color("&c" + policy.name + (policy.tiered ? " " + roman(tier) : "") + " is &f" + sanction
                    + "&c, not an applicable ban or mute punishment."));
            return false;
        }

        String sanctionType = warning ? "warning" : permanent ? sanction.substring(5).toLowerCase(Locale.ROOT)
                : sanctionMatcher.group(2).toLowerCase(Locale.ROOT);
        Long durationMillis = permanent || warning ? null : parseDurationMillis(sanctionMatcher.group(1));
        if (!permanent && !warning && durationMillis == null) {
            sender.sendMessage(color("&cThe configured duration for this punishment is invalid or too long."));
            return false;
        }
        Date expires = null;
        if (!permanent && !warning) {
            try {
                expires = new Date(Math.addExact(System.currentTimeMillis(), durationMillis));
            } catch (ArithmeticException exception) {
                sender.sendMessage(color("&cThat configured duration is too long."));
                return false;
            }
        }

        Player onlineTarget = Bukkit.getOnlinePlayers().stream()
                .filter(player -> player.getName().equalsIgnoreCase(playerName))