RA-LiveStatus
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 offends the status,/live listshows everyone who is live right now- Links are checked against a regex per platform, so only real TikTok or YouTube URLs are accepted
- Running
/liveagain 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
/liveneeds a permission, so you choose who may announce streams
Placeholders
- Show a ready-made
[LIVE]tag in tab, chat, or nametags with PlaceholderAPI
Dependencies
| Plugin | Required | Purpose |
|---|---|---|
| PlaceholderAPI | No (softdepend) | Enables %livestatus_*% placeholders |
Installation
- Place
RA-LiveStatus.jarinto yourplugins/folder - Restart the server
- Give the
ra.live.usepermission to the group that may stream (for example with LuckPerms) - Edit
plugins/RA-LiveStatus/config.ymland 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
| Command | Description | Access |
|---|---|---|
/live <tiktok|youtube> <url> | Go live with a link | ra.live.use |
/live off | End your live status | ra.live.use |
/live list | List players who are live | Player |
Permissions
| Permission | Default | Description |
|---|---|---|
ra.live.use | false | Use /live to set your streaming status |
ra.live.bypass.cooldown | op | Ignore the toggle cooldown |
ra.live.admin | op | Force other players offline and reload the config |
PlaceholderAPI
Requires PlaceholderAPI. Identifier: livestatus.
| Placeholder | Description |
|---|---|
%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