RA-NetworkTools
Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Velocity 3.3+ (Java 17+)
Features
/nfind: Find a Player
- Looks up a player across the whole network and shows their server, their rank (from LuckPerms), and how long they have been online
- Online time is counted from the proxy login, so it stays accurate when the player moves between servers
- Output text is fully configurable, and ranks use the group display name when one is set
- An error is shown if the player is not online
/nbroadcast: Network Announcements
- Send a message to everyone, a specific server (
-s), or a specific rank (-r) - Each message goes out as a chat message, optionally with a title and subtitle and a sound
- Three message styles with their own prefix, color, and title:
general,event, andmaintenance - Title timings and the sound (name, volume, pitch) are configurable
- Clear errors when the target server or rank does not exist
Hex Colors
- All text supports
&#RRGGBBhex colors
Dependencies
| Component | Required | Purpose |
|---|---|---|
| Velocity 3.3+ | Yes | The proxy this plugin runs on |
| LuckPerms | Yes | Rank lookup for /nfind and the -r target of /nbroadcast. Install it on the proxy |
Installation
- Place
ra-networktools-1.0.0.jarinto the Velocityplugins/folder - Make sure LuckPerms is installed on the proxy
- Restart the proxy
- Edit
plugins/ra-networktools/config.yml
File Structure
text
1
plugins/ra-networktools/
└── config.yml # Find output, broadcast styles, sound, LuckPerms
Configuration
config.yml
yaml
1
settings:
human-readable-duration: true # true = "1h 23m", false = "1:23:00"
find:
show-rank: true
rank-fallback: "&7Unknown"
format:
header: "CDA7&lPlayer Info"
line-player: "&7Player: &f{name}"
line-server: "&7Server: &f{server}"
line-rank: "&7Rank: {rank}"
line-online: "&7Online: &f{duration}"
not-found: "&#F87171Player &f{name} &#F87171is not online."
broadcast:
use-title: true
title-fade-in: 10 # ticks
title-stay: 60
title-fade-out: 10
formats:
general:
prefix: "CDA7[Network] &f"
title: "CDA7Announcement"
event:
prefix: "&#F5A623[Event] &f"
title: "&#F5A623Event Started!"
maintenance:
prefix: "&#F87171[Maintenance] &f"
title: "&#F87171Maintenance"
sound:
enabled: true
name: "ENTITY_EXPERIENCE_ORB_PICKUP"
volume: 1.0
pitch: 1.0
server-not-found: "&#F87171Server &f{server} &#F87171was not found."
rank-not-found: "&#F87171Rank &f{rank} &#F87171was not found."
luckperms:
use-display-name: true
Commands
| Command | Description | Permission |
|---|---|---|
/nfind <player> | Show a player's server, rank, and online time | ranetworktools.find |
/nbroadcast <message> | Broadcast to every player | ranetworktools.broadcast.all |
/nbroadcast -s <server> <message> | Broadcast to one server | ranetworktools.broadcast.server |
/nbroadcast -r <rank> <message> | Broadcast to players with one rank | ranetworktools.broadcast.rank |
Permissions
| Permission | Description |
|---|---|
ranetworktools.find | Use /nfind |
ranetworktools.broadcast.all | Broadcast to all servers |
ranetworktools.broadcast.server | Broadcast to a specific server (-s) |
ranetworktools.broadcast.rank | Broadcast to a specific rank (-r) |
Notes
- Bedrock and Java players are not told apart through the Floodgate API. If you need that, check
player.getUsername().startsWith("."), because Bedrock usernames are prefixed with a dot - If a user is not cached on the proxy, the rank is loaded from LuckPerms on demand
License
Developed by RajaAditya — rajaaditya.my.id