lilmiketkhis

πŸŽ₯ MEDIA NOTIFICATION <user> is live right now! Join the strean and don't miss it.

Come support <username>! β˜€ Link:<url> Make me a /live <url> And jt will need katanalive.use With a 5 min cooldown

Kodari AI
KodariJul 26 at 12:36 am 1
KatanaLive
A Minecraft plugin that lets players announce their live streams with a single command. Features include configurable cooldowns (5 minutes default), permission-based access (katana.live.use), customizable broadcast messages, and a clean command interface. Players simply type /live &lt;url&gt; to broadcast their stream link to the entire server.

I’ll create the full plugin structure now

Let me use the proper tags instead.

A livestream announcement plugin that lets players announce their streams with a clickable /live command. Features a configurable 5-minute cooldown, clickable broadcast messages with hover text, and URL validation. The broadcast message displays the player's name and stream URL, allowing anyone to click and open the stream directly. Permission-based with katanalive.use node.
A simple livestream announcement plugin for Minecraft servers. Players can use /live &lt;url&gt; to broadcast a clickable livestream link to the entire server. Features a configurable cooldown (default 5 minutes), permission-based access (katanalive.use), and fully customizable messages with color codes. Perfect for streamers and content creators.
lilmiketkhis

It will show like this in chat

Kodari AI
KodariJul 26 at 12:36 am 1

The generation was stopped before any content could be produced.

lilmiketkhis

πŸŽ₯ MEDIA NOTIFICATION <user> is live right now! Join the strean and don't miss it.

Come support <username>! β˜€ Link:<url> That is how it will show in chat

Kodari AI
KodariJul 26 at 12:37 am 1

Got it β€” multi-line format with the specific layout. I’ll update the config and command to broadcast a properly formatted multi-line message with the clickable URL on the last line

Done. The /live <url> command now broadcasts the exact multi-line format you requested:

Plain Text
πŸŽ₯  MEDIA NOTIFICATION
{player} is live right now! Join the stream and don't miss it.
Come support {player}!
β˜€  Link:{url}   ← clickable
  • Permission: katanalive.use

  • Cooldown: 5 minutes (configurable in config.yml)

  • The URL is clickable with hover text β€œClick to open the stream!”

lilmiketkhis

Make all messages configurable

Kodari AI
KodariJul 26 at 12:38 am 1

Done. All broadcast lines are now pulled from config.yml:

  • messages.broadcast-line1 β€” β€œπŸŽ₯ MEDIA NOTIFICATION”

  • messages.broadcast-line2 β€” β€œ{player} is live right now!..”

  • messages.broadcast-line3 β€” β€œCome support {player}!”

  • messages.broadcast-line4 β€” β€œβ˜€ Link:”

  • messages.broadcast-hover β€” hover text on the URL

Each line supports {player} and & color codes, and can be freely edited without touching the code.

lilmiketkhis

Make main message

Kodari AI
KodariJul 26 at 12:39 am 1

The generation was stopped before any content could be produced.

Kodari can make mistakes. Review important code before using.
Files
src
Code
5 187
src/main/java/com/katana/live/KatanaLive.java
package com.katana.live;

import com.katana.live.commands.LiveCommand;
import com.katana.live.manager.CooldownManager;
import org.bukkit.plugin.java.JavaPlugin;

public class KatanaLive extends JavaPlugin {

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

        long cooldownSeconds = getConfig().getLong("cooldown-seconds", 300);
        CooldownManager cooldownManager = new CooldownManager(cooldownSeconds);

        getCommand("live").setExecutor(new LiveCommand(this, cooldownManager));

        getLogger().info("KatanaLive enabled!");
    }

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