RemotePlayerRegistry

class RemotePlayerRegistry(localServerName: String)(source)

Caches proxy-wide player presence (player name -> server name) on this Paper server.

Velocity is the source of truth; this registry is replaced wholesale on each dev.m1sk9.lunaticChat.engine.protocol.PluginMessage.PresenceSnapshot. It backs cross-server direct message tab-completion and remote target resolution.

Parameters

localServerName

This server's name (as configured in velocityIntegration.serverName), used to exclude local players from remote lookups.

Constructors

Link copied to clipboard
constructor(localServerName: String)

Functions

Link copied to clipboard
fun clear()

Clears the roster (e.g. when the Velocity connection is lost).

Link copied to clipboard

Returns players on servers other than this one, with original-cased names.

Link copied to clipboard

Replaces the entire roster with the given snapshot entries.

Link copied to clipboard
fun serverOf(playerName: String): String?

Returns the server a player is currently on, or null if unknown.