RA-NetworkTools

A Velocity proxy plugin with /nfind to locate a player anywhere on the network and /nbroadcast to send chat, title, and sound announcements to everyone, one server, or one rank.

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, and maintenance
  • 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 &#RRGGBB hex colors

Dependencies

ComponentRequiredPurpose
Velocity 3.3+YesThe proxy this plugin runs on
LuckPermsYesRank lookup for /nfind and the -r target of /nbroadcast. Install it on the proxy

Installation

  1. Place ra-networktools-1.0.0.jar into the Velocity plugins/ folder
  2. Make sure LuckPerms is installed on the proxy
  3. Restart the proxy
  4. 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: "&#11CDA7&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: "&#11CDA7[Network] &f"
      title: "&#11CDA7Announcement"
    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

CommandDescriptionPermission
/nfind <player>Show a player's server, rank, and online timeranetworktools.find
/nbroadcast <message>Broadcast to every playerranetworktools.broadcast.all
/nbroadcast -s <server> <message>Broadcast to one serverranetworktools.broadcast.server
/nbroadcast -r <rank> <message>Broadcast to players with one rankranetworktools.broadcast.rank

Permissions

PermissionDescription
ranetworktools.findUse /nfind
ranetworktools.broadcast.allBroadcast to all servers
ranetworktools.broadcast.serverBroadcast to a specific server (-s)
ranetworktools.broadcast.rankBroadcast 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