MONKEYCATXD

create a simple /alerts plugin for braoding messgaes to actionbar title or chat it can use color clods as well the config chsoulr be #007BFB&lCUJOQT SERVER ALERT (end color) (message)

Kodari AI
KodariMar 9 at 5:33 am 10,515 (v2)

I’ll create a simple alerts plugin for broadcasting messages to actionbar, title, or chat with hex color and legacy code support.

AlertsPlugin
A lightweight alert broadcasting system that allows administrators to send formatted messages to all players via actionbar, title, or chat. Supports both hex colors (#RRGGBB) and legacy color codes (&c, &l, etc.). Features customizable prefix and format strings for different alert types. Perfect for announcing server events, restarts, or important information.

Plugin created! Features:

  • Commands: /alert <actionbar|title|chat> <message> - Broadcast formatted alerts to all players

  • Color Support: Hex colors (#007BFF or &#007BFF) and legacy codes (&c, &l, &n, etc.)

  • Title Format: Use | to split title and subtitle: /alert title Main Title|Subtitle Text

  • Customizable: Edit config.yml to change prefix, formats, and title timings

MONKEYCATXD

add a reload and make it so u can see teh differnt options for teh action abr title or chat

Kodari AI
KodariMar 9 at 6:11 am 6,995 (v2)

I’ll read the existing files to understand the current plugin structure and add the reload functionality plus action selection.

I’ll add reload functionality and tab completion to show the different action options.

Added reload command and tab completion showing all action types (actionbar/action/ab, title/t, chat/c, reload) with proper permissions and configurable messages.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 347
src/main/java/com/alerts/plugin/AlertsPlugin.java
package com.alerts.plugin;

import com.alerts.plugin.commands.AlertCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AlertsPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        
        AlertCommand alertCommand = new AlertCommand(this);
        getCommand("alert").setExecutor(alertCommand);
        getCommand("alert").setTabCompleter(alertCommand);
        
        getLogger().info("AlertsPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("AlertsPlugin has been disabled!");
    }
}