ilovecuriousgeorge
πŸ“Ž 1 file 13,440 chars
πŸ“„
message-5.txt
txt 902 lines
β–Ά
# ChurroPunishment + Churro SFMode β€” Complete Master Plugin

Create a **large, premium, fully customizable Paper Minecraft moderation plugin** called **ChurroPunishment**, with a complete integrated **Churro SFMode** system.

This should combine **every feature from the previous requirements** into one connected staff system.

The plugin should feel like a professional moderation/cheater-catching system for a large SMP server.

---

# 1. Main Commands

### Punishment

`/punish `

`/punishments `

`/punishmentinfo `

`/unban `

`/unmute `

`/warn  `

### Main Staff INVENTORY GUI

`/churropunish INVENTORY GUI`

This opens the central ChurroPunishment INVENTORY GUI.

### SFMode

`/sfmode`

Toggle SFMode.

Also allow:

`/sfmode INVENTORY GUI`

to directly open the SFMode INVENTORY GUI.

### Reports

`/report  `

`/reports`

### Staff Tools

`/freeze `

`/unfreeze `

`/vanish`

### Admin

`/churropunishment reload`

`/churropunishment debug`

`/churropunishment history `

`/churropunishment reset `

---

# 2. MAIN CHURROPUNISH INVENTORY GUI

`/churropunish INVENTORY GUI`

opens the main staff control panel.

Make this a **large premium INVENTORY GUI**.

Example:

`&8&lChurro &7Β» &c&lStaff Panel`

Include:

* βš– Punish Player
* πŸ“œ Punishment History
* πŸ”¨ Banned Players
* πŸ”‡ Muted Players
* πŸ”“ Unban Players
* πŸ”Š Unmute Players
* 🚨 Reports
* πŸ›‘ SFMode
* πŸ‘ Vanish
* ❄ Freeze
* πŸ‘€ Online Players
* πŸ›  Custom Commands
* βš™ Staff Settings

Everything must be configurable.

---

# 3. SFMode

`/sfmode`

toggles staff/cheater-catching mode.

When enabled:

* Give configurable staff items.
* Save the staff member's normal inventory.
* Prevent staff tools from being dropped.
* Prevent staff tools from being moved incorrectly.
* Give access to the SFMode INVENTORY GUI.
* Enable configurable vanish.
* Enable configurable staff permissions.
* Show a configurable SFMode status message.

When disabled:

* Remove staff tools.
* Restore the player's normal inventory.
* Restore their previous gamemode if configured.
* Restore their previous location/state where appropriate.

---

# 4. SFMode INVENTORY GUI

Create a dedicated **cheater-catching INVENTORY GUI**.

Example:

`&8&lChurro &7Β» &b&lSFMode`

Include:

### Player Management

* Online Players
* Search Player
* Player Information
* Inventory Viewer
* Ender Chest Viewer
* Player Statistics
* Player History
* Punish Player
* Freeze
* Unfreeze
* Teleport to Player
* Teleport Player to Staff

### Investigation

* Spectate
* Vanish
* Freeze
* Player Information
* Inventory
* Ender Chest
* Punishment History
* Staff Notes
* Reports
* Custom Investigation Commands

---

# 5. CUSTOM SFMode COMMAND BUTTONS

This must be one of the biggest features.

Allow the server owner to add **unlimited custom commands directly into the SFMode INVENTORY GUI through config**.

Example:

```yaml
custom-buttons:
  screenshare:
    name: "&c&lStart Screenshare"
    material: REDSTONE
    slot: 20
    command: "ts %player%"
    permission: "churro.sfmode.screenshare"

  endscreenshare:
    name: "&a&lEnd Screenshare"
    material: LIME_DYE
    slot: 21
    command: "unts %player%"
    permission: "churro.sfmode.endscreenshare"
```

Support:

`%player%`

`%uuid%`

`%staff%`

`%staff_uuid%`

Allow:

* Player commands
* Console commands
* Multiple commands
* Custom permissions
* Custom sounds
* Custom materials
* Custom lore
* Custom slots
* Custom names

This allows commands such as:

`/ts %player%`

`/unts %player%`

`/freeze %player%`

`/spec %player%`

`/invsee %player%`

and any future commands.

The plugin must not require these external commands to exist.

---

# 6. SFMode INVENTORY BUTTON

When SFMode is enabled, give staff a configurable item.

Example:

**πŸ›‘ Churro SFMode**

`&7Right-click to open the staff menu`

Right-clicking opens the SFMode INVENTORY GUI.

Allow the item to be completely configured.

---

# 7. PLAYER MENU

Clicking a player inside SFMode opens a detailed player INVENTORY GUI.

Display:

* Player head
* Name
* UUID
* Online status
* Health
* World
* Coordinates
* Gamemode
* Ping where available
* Warning count
* Mute count
* Ban history
* Current punishment
* Report count

Buttons:

* πŸ” Investigate
* πŸ‘ Spectate
* ❄ Freeze
* πŸ“¦ Inventory
* πŸ“¦ Ender Chest
* βš– Punish
* πŸ“œ History
* πŸ“ Teleport
* πŸ›  Custom Commands

---

# 8. PUNISHMENT INVENTORY GUI

Make the punishment INVENTORY GUI look **much better than a basic punishment menu**.

Use categories.

### ⚠ Warnings

* Warning
* Final Warning

### πŸ”‡ Mutes

* 5 Minutes
* 30 Minutes
* 1 Hour
* 1 Day
* Permanent

### πŸ”¨ Bans

* 10 Minutes
* 1 Hour
* 1 Day
* 7 Days
* 30 Days
* Permanent

Allow unlimited custom punishments.

Every punishment can have:

* Name
* Duration
* Reason
* Material
* Slot
* Lore
* Permission
* Sound
* Message
* Broadcast
* Commands

---

# 9. PUNISHMENT REASON INVENTORY GUI

After selecting a punishment, allow staff to select a reason.

Example:

* Cheating
* Hacking
* Exploiting
* Advertising
* Spam
* Harassment
* Disrespect
* Scamming
* Other

Allow custom reasons.

---

# 10. PUNISHMENT CONFIRMATION

Never punish someone immediately after one accidental click.

Show:

**CONFIRM PUNISHMENT**

Player:

`%player%`

Punishment:

`%punishment%`

Reason:

`%reason%`

Duration:

`%duration%`

Staff:

`%staff%`

Buttons:

`&a&lCONFIRM`

`&c&lCANCEL`

---

# 11. BAN SYSTEM

Create a complete ban system.

When banned:

* Apply the punishment.
* Kick the player.
* Save the punishment.
* Store the ban ID.
* Store the reason.
* Store the staff member.
* Store the expiry time.
* Log the action.

Support:

* Temporary bans
* Permanent bans
* Offline bans
* UUID-based bans

---

# 12. BAN SCREEN

When a banned player tries to join, show a professional custom ban screen/message.

Example:

```text
&c&lYOU ARE BANNED

&7You have been banned from &bChurro SMP.

&fReason:
&c%reason%

&fBanned By:
&c%staff%

&fTime Remaining:
&c%time_left%

&fBan ID:
&7%ban_id%

&7If you believe this punishment is incorrect,
&7please contact staff.

&bDiscord:
&fdiscord.gg/yourserver
```

Everything must be configurable.

Include:

* Server name
* Reason
* Staff
* Time left
* Ban ID
* Expiry date
* Discord
* Website
* Appeal information

---

# 13. LIVE BAN TIMER

Temporary bans must show the correct remaining time.

Examples:

`29d 4h 12m`

`4h 32m`

`27m 41s`

Permanent:

`PERMANENT`

Automatically expire temporary punishments.

---

# 14. BAN LOOT / DEATH EFFECT

Add a configurable option so that when a player receives a ban, the server can make the punishment feel like a death event.

If enabled:

* Trigger a death-style effect.
* Drop the player's configured loot/inventory into the world.
* Play configurable sounds.
* Spawn configurable particles.
* Broadcast a configurable message.

Make this completely configurable because some servers may not want inventory drops.

Never silently delete items.

---

# 15. UNBAN INVENTORY GUI

From:

`/churropunish INVENTORY GUI`

click:

**πŸ”“ Unban Players**

Open a dedicated unban INVENTORY GUI.

Show all currently banned players.

Each player gets a player-head button showing:

* Name
* Reason
* Staff
* Duration
* Time remaining
* Ban ID

---

# 16. INDIVIDUAL UNBAN

Clicking a banned player opens:

**UNBAN %player%**

Display their ban information.

Buttons:

`&a&lUNBAN PLAYER`

`&c&lCANCEL`

After confirmation:

* Remove active ban.
* Record the unban.
* Record staff member.
* Record time.
* Update punishment history.
* Send configurable notification.

---

# 17. UNBAN ALL

Add a large:

**πŸ”“ UNBAN ALL**

button.

This must require:

`churropunishment.unbanall`

Before doing anything, show:

**WARNING**

`You are about to unban %count% players.`

Buttons:

`&a&lCONFIRM UNBAN ALL`

`&c&lCANCEL`

Only execute after confirmation.

Log the mass-unban action.

---

# 18. UNBAN SEARCH

Add:

**πŸ”Ž Search Player**

Staff can search by name.

Display matching active bans.

---

# 19. UNBAN PAGINATION

If there are lots of banned players:

`β—€ Previous`

`β–Ά Next`

`Page X/Y`

Do not load hundreds of players into one INVENTORY GUI.

---

# 20. MUTE SYSTEM

Create the same system for mutes.

Include:

* Active mutes
* Mute history
* Unmute INVENTORY GUI
* Search
* Individual unmute
* Unmute confirmation
* Configurable durations
* Permanent mutes

---

# 21. PUNISHMENT HISTORY

`/punishments `

Open a complete history INVENTORY GUI.

Display:

* Punishment ID
* Type
* Reason
* Staff
* Date
* Duration
* Expiry
* Status

Clicking a punishment opens detailed information.

---

# 22. REPORT SYSTEM

`/report  `

`/reports`

Create a report INVENTORY GUI.

Staff can:

* View report
* Teleport to player
* Start investigation
* Open SFMode
* Punish
* Dismiss
* Mark handled

Display:

* Reporter
* Reported player
* Reason
* Time
* Status

---

# 23. FREEZE SYSTEM

Commands:

`/freeze `

`/unfreeze `

Frozen players:

* Cannot normally move.
* Cannot perform restricted commands.
* Receive configurable messages.
* Show configurable effects/title/action bar.

Allow configurable commands while frozen, including commands needed for staff investigations.

---

# 24. VANISH

`/vanish`

Staff can become invisible to normal players.

Support:

* Staff visibility
* Player-list hiding
* Join/quit hiding
* configurable vanish effects
* permission-based visibility

---

# 25. STAFF NOTES

Allow staff to add notes to players.

Example:

`Staff note: Player was reported for suspicious movement.`

Store:

* Note
* Staff member
* Date
* Player UUID

Show notes inside the player investigation INVENTORY GUI.

---

# 26. STAFF LOGGING

Log important actions:

* Punishments
* Unbans
* Unban All
* Unmutes
* Warnings
* Freezes
* Unfreezes
* Vanish
* Reports
* SFMode actions
* Custom command actions

Include:

* Staff member
* Player
* Action
* Reason
* Timestamp

---

# 27. DATABASE

Use SQLite by default.

Store:

* UUID
* Name
* Punishment ID
* Punishment type
* Reason
* Staff UUID
* Staff name
* Created time
* Expiry
* Active status
* Unban information
* Notes
* Reports

Use UUIDs as the main player identifier.

Make the system ready for MySQL support.

---

# 28. PERMISSIONS

Include:

```text
churropunishment.INVENTORY GUI
churropunishment.punish
churropunishment.warn
churropunishment.mute
churropunishment.ban
churropunishment.unban
churropunishment.unbanall
churropunishment.unmute
churropunishment.history
churropunishment.staffmode
churropunishment.sfmode
churropunishment.freeze
churropunishment.vanish
churropunishment.reports
churropunishment.notes
churropunishment.admin
churropunishment.*
```

Every sensitive action should have its own permission.

---

# 29. CONFIGURATION

Make the plugin extremely customizable.

Configurable:

* INVENTORY GUI titles
* INVENTORY GUI sizes
* Slots
* Materials
* Names
* Lore
* Sounds
* Particles
* Messages
* Prefix
* Punishments
* Durations
* Reasons
* Ban screen
* Discord
* Website
* Appeal message
* Staff items
* SFMode buttons
* Custom commands
* Permissions
* Freeze settings
* Vanish settings
* Reports
* Staff notes
* Loot dropping
* Death effects
* Broadcasts
* Database
* Date format
* Time format

Use modern MiniMessage formatting.

---

# 30. RELIABILITY

The plugin must:

* Use UUIDs.
* Never punish the wrong player.
* Require confirmation for dangerous actions.
* Require special permission for Unban All.
* Protect SFMode inventory.
* Safely restore inventories.
* Handle offline players.
* Handle server restarts.
* Handle expired punishments.
* Prevent duplicate INVENTORY GUI clicks.
* Never silently delete items.
* Have proper error handling.
* Avoid console errors.
* Save everything reliably.

---

# 31. FINAL STAFF EXPERIENCE

The final plugin should feel like:

**ChurroPunishment**
β†’ Main moderation system

**Churro SFMode**
β†’ Cheater investigation system

**Main INVENTORY GUI**
β†’ Central control panel

**SFMode inventory item**
β†’ Quick access to staff tools

**Custom INVENTORY GUI commands**
β†’ Unlimited expandable staff tools

**Punishment INVENTORY GUI**
β†’ Professional punishments

**Unban INVENTORY GUI**
β†’ Individual unban + Unban All

**Ban Screen**
β†’ Reason + Staff + Time Left + Discord

**Reports**
β†’ Complete report management

**History**
β†’ Complete player punishment history

**Freeze/Vanish**
β†’ Staff investigation tools

Make everything look consistent, premium and highly polished, with **Churro branding throughout the entire plugin**.
Kodari AI
KodariAug 18 at 12:53 pm 3
ChurroPunishment
A premium Paper moderation plugin combining punishment management with an integrated staff investigation mode. Features a central staff control panel GUI with punish, history, ban, mute, unban, and report management. Includes a toggleable SFMode with configurable staff items, inventory saving, and a dedicated investigation GUI. Provides custom command buttons with placeholder support, professional ban screens with live timers, freeze/vanish tools, staff notes, and comprehensive logging. Uses SQLite storage with UUID-based tracking, fully configurable via YAML with MiniMessage formatting, and includes confirmation prompts for dangerous actions.
  1. Build the Paper plugin foundation with SQLite persistence, configurable messages, permissions, and command registration.

  2. Add moderation services for punishments, reports, freezes, vanish, SFMode, custom commands, and restart-safe active punishment checks.

  3. Add the reusable inventory GUI system and connected staff menus for players, punishments, confirmations, history, bans/mutes, reports, and SFMode.

  4. Add configuration and plugin metadata covering the requested Churro branding and customization points.

Created the ChurroPunishment project from scratch with:

  • Paper plugin setup, Gradle build, plugin metadata, permissions, and manifest.

  • SQLite persistence for punishments, reports, notes, and staff logs.

  • Ban, mute, warning, history, unban, unmute, report, freeze, vanish, and SFMode services.

  • Restart-safe active punishment checks and configurable ban screens.

  • Main staff GUI, SFMode GUI, player management GUI, punishment/reason/confirmation menus, history, reports, active ban/mute lists, and unban-all confirmation.

  • Configurable custom SFMode command buttons with %player%, %uuid%, %staff%, and %staff_uuid%.

  • Configurable Churro branding, MiniMessage formatting, punishment durations, reasons, materials, slots, lore, permissions, and staff tools.

  • Protected SFMode inventory item, inventory restoration, vanish visibility handling, freeze movement restrictions, and mute chat blocking.

ilovecuriousgeorge

Make sure all the colors work staff and ban

Kodari AI
KodariAug 18 at 12:54 pm 2
  1. Trace staff and ban message/color formatting.

  2. Fix any paths that bypass the project’s color formatter and verify related config keys.

Fixed staff/ban color handling in the punishment confirmation menu.

Configured MiniMessage colors in punishment names now render correctly instead of being converted into raw section-sign codes. Core staff messages and ban screens already use the project’s component formatter correctly.

ilovecuriousgeorge

Make code

Kodari AI
KodariAug 18 at 12:57 pm 2
  1. Update the shared text parser to support &, Β§, mixed MiniMessage/legacy colors, and hex legacy colors.

  2. Apply the configured prefix to staff messages without altering the standalone ban screen.

  3. Add the missing mute message entries so staff punishment feedback is also rendered.

Implemented color handling for staff and ban messages:

  • Supports MiniMessage, & colors, Β§ colors, and legacy hex formats.

  • Applies the configured messages.prefix to staff messages.

  • Keeps ban screens independently formatted.

  • Added missing messages.muted and messages.mute-created entries.

  • Fixed legacy color conversion inside MiniMessage-formatted text.

ilovecuriousgeorge

Build this

Kodari AI
KodariAug 18 at 12:57 pm 1

The code is updated and ready to build. Gradle/build tools aren’t available in this environment, so I can’t run the compilation locally; the project verifier will compile it automatically.

ilovecuriousgeorge

It's not I don't see the green thing

Kodari AI
KodariAug 18 at 12:58 pm 1

[Generation stopped]

ilovecuriousgeorge

I mean to download it

Kodari AI
KodariAug 18 at 12:58 pm 1

You mean a downloadable compiled plugin .jar. I only modified the source code; this environment cannot run Gradle or attach a built JAR, so there is no download file yet.

Build it locally with:

Shell
./gradlew build

Then download the JAR from:

Plain Text
build/libs/

Place the resulting .jar in your server’s plugins folder and restart the server.

ilovecuriousgeorge

Well send it?

Kodari AI
KodariAug 18 at 12:58 pm 1

I can’t send the .jar because this project currently has no compiled buildβ€”only the source code and build.gradle are present.

Build it with Gradle from the project folder:

Shell
gradle build

The finished plugin will be located at:

Plain Text
build/libs/

Then place that .jar into your server’s plugins folder.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
19 1,447
src/main/java/com/churro/punishment/ChurroPunishment.java
package com.churro.punishment;

import com.churro.punishment.command.ChurroCommand;
import com.churro.punishment.gui.GuiListener;
import com.churro.punishment.gui.GuiManager;
import com.churro.punishment.model.Punishment;
import com.churro.punishment.service.PunishmentService;
import com.churro.punishment.service.StaffManager;
import com.churro.punishment.storage.Database;
import com.churro.punishment.util.TextUtil;
import net.kyori.adventure.text.Component;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ChurroPunishment extends JavaPlugin {
    private Database database;
    private PunishmentService punishments;
    private StaffManager staff;
    private GuiManager guis;

    @Override public void onEnable() {
        saveDefaultConfig();
        database = new Database(this);
        punishments = new PunishmentService(this);
        staff = new StaffManager(this);
        guis = new GuiManager();
        getServer().getPluginManager().registerEvents(new GuiListener(guis), this);
        getServer().getPluginManager().registerEvents(new StaffListener(this), this);
        ChurroCommand command = new ChurroCommand(this);
        for (String name : List.of("punish", "punishments", "punishmentinfo", "unban", "unmute", "warn", "churropunish", "sfmode", "report", "reports", "freeze", "unfreeze", "vanish", "churropunishment")) {
            if (getCommand(name) != null) { getCommand(name).setExecutor(command); getCommand(name).setTabCompleter(command); }
        }
        getLogger().info("ChurroPunishment and Churro SFMode enabled.");
    }

    @Override public void onDisable() { if (staff != null) staff.shutdown(); if (database != null) database.close(); }
    public Database database() { return database; }
    public PunishmentService punishments() { return punishments; }
    public StaffManager staff() { return staff; }
    public GuiManager guis() { return guis; }

    public Component component(String message, Map<String, String> values) { return TextUtil.parse(message, values); }
    public void send(CommandSender sender, String path, Map<String, String> values) { String message = getConfig().getString(path, ""); if (message.isBlank()) return; String prefix = getConfig().getString("messages.prefix", ""); sender.sendMessage(component(prefix + message, values)); }
    public void send(Player player, String path, Map<String, String> values) { send((CommandSender) player, path, values); }
    public Component banScreen(Punishment punishment) {
        List<String> lines = getConfig().getStringList("messages.banned-screen");
        Map<String, String> values = new HashMap<>(); values.put("server", getConfig().getString("settings.server-name", "Server")); values.put("reason", punishment.getReason()); values.put("staff", punishment.getStaffName()); values.put("time_left", punishment.durationText()); values.put("ban_id", punishment.getId()); values.put("discord", getConfig().getString("settings.discord", "")); values.put("website", getConfig().getString("settings.website", ""));
        Component result = Component.empty();
        for (String line : lines) result = result.append(component(line, values)).append(Component.newline());
        return result;
    }
}