RA-LiveStatus

Lets streamers on a Paper server announce that they are live on TikTok or YouTube, with a validated link, periodic reminders, auto-timeout on disconnect, and PlaceholderAPI tags.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.20+


Features

Go Live in One Command

  • /live <tiktok|youtube> <url> marks the player as live and broadcasts the link to the server
  • /live off ends the status, /live list shows everyone who is live right now
  • Links are checked against a regex per platform, so only real TikTok or YouTube URLs are accepted
  • Running /live again while already live just updates the link

Broadcasts and Reminders

  • A message is broadcast when a player goes live and when they stop (both can be turned off)
  • While a player is still live, a reminder is broadcast every few minutes (default 5)
  • Messages are different per platform and fully editable

Safe by Default

  • A cooldown stops players from toggling the status over and over (default 30 seconds)
  • If a live player disconnects, the status is either cleared immediately or after an auto-timeout (default 10 minutes), so players are not shown as live forever
  • Using /live needs a permission, so you choose who may announce streams

Placeholders

  • Show a ready-made [LIVE] tag in tab, chat, or nametags with PlaceholderAPI

Dependencies

PluginRequiredPurpose
PlaceholderAPINo (softdepend)Enables %livestatus_*% placeholders

Installation

  1. Place RA-LiveStatus.jar into your plugins/ folder
  2. Restart the server
  3. Give the ra.live.use permission to the group that may stream (for example with LuckPerms)
  4. Edit plugins/RA-LiveStatus/config.yml and restart

File Structure

text
1
plugins/RA-LiveStatus/
└── config.yml       # Cooldowns, timeouts, platforms, broadcasts, placeholders, messages

Live status is kept in memory only, so it is cleared when the server restarts.


Configuration

config.yml (main sections)

yaml
1
settings:
  toggle-cooldown: 30        # seconds between /live uses
  clear-on-quit: false       # true = clear immediately when the player quits
  auto-timeout-minutes: 10   # used when clear-on-quit is false, 0 = disabled
  platforms:
    - tiktok
    - youtube
  url-validation:
    tiktok: "^(https?://)?(www\\.)?(tiktok\\.com)/.+$"
    youtube: "^(https?://)?(www\\.)?(youtube\\.com|youtu\\.be)/.+$"

broadcast:
  enabled: true
  broadcast-on-stop: true
  go-live-messages:
    tiktok: "&cšŸ”“ &f%player% is now &cLIVE&f on &fTikTok&f! Watch here: &b%url%"
    youtube: "&cšŸ”“ &f%player% is now &cLIVE&f on &fYouTube&f! Watch here: &b%url%"
  stop-live-message: "&7%player% has ended their live stream."
  reminder:
    enabled: true
    interval-minutes: 5
  timeout-stop-message: "&7%player%'s live stream has ended (disconnected)."

placeholders:
  status-live: "LIVE"
  status-offline: ""
  platform-display:
    tiktok: "TikTok"
    youtube: "YouTube"
  live-tag: "&c[LIVE]&r "
  offline-tag: ""

The messages: section holds every command response (now-live, now-offline, on-cooldown, list-header, and so on) and supports & colors. Placeholders in messages: %player%, %url%, %platform%, %platforms%, %seconds%.


Commands

CommandDescriptionAccess
/live <tiktok|youtube> <url>Go live with a linkra.live.use
/live offEnd your live statusra.live.use
/live listList players who are livePlayer

Permissions

PermissionDefaultDescription
ra.live.usefalseUse /live to set your streaming status
ra.live.bypass.cooldownopIgnore the toggle cooldown
ra.live.adminopForce other players offline and reload the config

PlaceholderAPI

Requires PlaceholderAPI. Identifier: livestatus.

PlaceholderDescription
%livestatus_status%LIVE while live, empty otherwise (configurable)
%livestatus_platform%TikTok or YouTube while live
%livestatus_url%The live link, empty if not live
%livestatus_tag%A ready-to-use colored tag such as &c[LIVE]&r

License

Developed by RajaAditya — rajaaditya.my.id