greatestbanana13

📢 Broadcast (by Dexer)

Send announcements to all players using Title, Action Bar, or Chat.

✅ Command /broadcast <title|action|chat> <text>

🔁 Aliases /ann /announce /bc

⌨️ Tab Completion

Tab complete supports:

title

action

chat

🎨 Color Support

Supports full formatting:

Legacy codes: &a &l &#00adfc

MiniMessage: <bold> <#00adfc> <gradient:...>

Kodari AI
KodariFeb 7 at 8:47 pm 5,431 (v2)

I’ll create a broadcast plugin with support for both legacy color codes and MiniMessage formatting.

Broadcast
A versatile announcement plugin that allows server staff to send messages to all players via title, action bar, or chat. Supports both legacy color codes and MiniMessage formatting including gradients and hex colors. Features tab completion and multiple command aliases for ease of use.

Plugin created! Features:

  • Commands: /broadcast, /ann, /announce, /bc - all work

  • Types: title, action, chat with tab completion

  • Color support: Both legacy (&a, &l, &#00adfc) and MiniMessage (<bold>, <#00adfc>, <gradient>)

  • Permission: broadcast.use (default: op)

The ColorUtil handles both formats seamlessly - you can mix them in the same message like &aHello <bold><gradient:red:blue>World

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 231
src/main/java/com/dexer/broadcast/Broadcast.java
package com.dexer.broadcast;

import com.dexer.broadcast.commands.BroadcastCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class Broadcast extends JavaPlugin {

    @Override
    public void onEnable() {
        BroadcastCommand broadcastCommand = new BroadcastCommand(this);
        getCommand("broadcast").setExecutor(broadcastCommand);
        getCommand("broadcast").setTabCompleter(broadcastCommand);
        
        getLogger().info("Broadcast plugin enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("Broadcast plugin disabled!");
    }
}