A

Create a Minecraft Paper/Spigot plugin that implements an ARG-style chapter broadcast system using a single command in the format /chapter "<number>" "<text>", where the first argument represents the chapter number (1–10) and the second argument is the message content. When executed, the plugin should broadcast the message to all players in chat formatted as CHAPTER <number>: <TEXT IN UPPERCASE>, with the text automatically converted to uppercase for dramatic effect. In addition to chat output, the plugin should optionally display a large on-screen title to all players showing the same message in the format CHAPTER <number> as the main title and the message text as the subtitle, styled in bold gray formatting for a glitchy ARG aesthetic. The title display should be toggleable via a console or config option so server owners can enable or disable screen titles without affecting chat messages. The plugin should include proper permission handling so only authorized users can trigger chapter broadcasts, and it should validate that chapter numbers stay within the 1–10 range unless configured otherwise. The system should be lightweight and modular, with clear separation between command handling, message formatting, and title broadcasting logic, allowing future expansion such as chapter-specific effects, sound triggers, or integration with an ARG progression system.

Kodari AI
KodariJun 17 at 3:40 am 11
ChapterBroadcast
An ARG-style chapter broadcast plugin for Paper/Spigot. Operators use /chapter &quot;&lt;number&gt;&quot; &quot;&lt;text&gt;&quot; to broadcast dramatic chapter announcements to all players in uppercase chat format. Optionally displays bold gray on-screen titles for a glitchy ARG aesthetic. Title display is toggleable via config. Includes permission gating, chapter range validation, and clean separation between command handling, message formatting, and title broadcasting logic.

Plan:

  1. ConfigManager — wraps config.yml, exposes toggles and limits

  2. MessageFormatter — pure formatting logic (chat + title strings)

  3. TitleBroadcaster — sends titles to all online players

  4. ChapterCommand — parses, validates, and dispatches broadcasts

  5. Main plugin class — wires everything together

  6. plugin.yml + config.yml

Here’s the full structure:

File
Role
ConfigManager
Reads
config.yml
— titles toggle, max chapter, timing, prefix
MessageFormatter
Pure static formatting — chat line, title, subtitle strings
TitleBroadcaster
Iterates online players and sends
sendTitle()
ChapterCommand
Parses quoted args, validates range, dispatches both outputs

Key behaviors:

  • Command syntax: /chapter "3" "the signal is real" — quotes are optional for single-word args

  • Chat output: [ARG] CHAPTER 3: THE SIGNAL IS REAL (gray, uppercase)

  • Title: CHAPTER 3 (bold gray) / subtitle: THE SIGNAL IS REAL (bold dark gray)

  • titles-enabled: false in config suppresses titles without touching chat

  • Set max-chapter higher than 10 in config to allow extended ARG arcs

  • Permission: chapterbroadcast.use (defaults to op)

A

make the chapter compact bold font. Add a /chapter reload and remove the [ARG] Make the sound of an amethyst block breaking play when the command is used

Kodari AI
KodariJun 17 at 3:53 am 11

Four changes: bold compact font on chat CHAPTER X, strip the [ARG] prefix, add reload subcommand, and play amethyst block break sound.

Now add the XSound import:

Now drop the now-unused getChatPrefix() from ConfigManager:

Also remove the unused ChatColor import from ConfigManager:

Summary of all changes:

  • Chat format — CHAPTER X: is now §l§7CHAPTER X: (bold gray), matching the title’s compact bold aesthetic. No prefix.

  • /chapter reload — reloads config and confirms to sender. Available to anyone with chapterbroadcast.use.

  • Amethyst sound — BLOCK_AMETHYST_BLOCK_BREAK plays client-side to every online player via XSound on each broadcast.

  • Config — chat-prefix key removed since there’s no longer a prefix; config.yml is cleaner.

Kodari can make mistakes. Review important code before using.
Files
src
Code
7 285
src/main/java/com/kodari/chapterbroadcast/ChapterBroadcast.java
package com.kodari.chapterbroadcast;

import com.kodari.chapterbroadcast.broadcast.TitleBroadcaster;
import com.kodari.chapterbroadcast.command.ChapterCommand;
import com.kodari.chapterbroadcast.config.ConfigManager;
import org.bukkit.plugin.java.JavaPlugin;

public class ChapterBroadcast extends JavaPlugin {

    private ConfigManager configManager;
    private TitleBroadcaster titleBroadcaster;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.titleBroadcaster = new TitleBroadcaster(this);

        getCommand("chapter").setExecutor(new ChapterCommand(this, configManager, titleBroadcaster));

        getLogger().info("ChapterBroadcast enabled.");
    }

    @Override
    public void onDisable() {
        getLogger().info("ChapterBroadcast disabled.");
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public TitleBroadcaster getTitleBroadcaster() {
        return titleBroadcaster;
    }
}