StrataVelocityPlugin

class StrataVelocityPlugin @Inject constructor(proxy: ProxyServer, logger: Logger)(source)

Installable Velocity endpoint with authenticated proxy/backend routing and an owned UI worker. Backend messages may use only the server route; client proxy actions are never forwarded to a backend.

Constructors

Link copied to clipboard
@Inject
constructor(proxy: ProxyServer, logger: Logger)

Functions

Link copied to clipboard
fun connected(event: ServerPostConnectEvent): EventTask?

Re-discovers Paper on the new backend and releases the proxy screen's previous native-container binding.

Link copied to clipboard
fun disconnected(event: DisconnectEvent): EventTask?

Releases player transports and state even when the disconnect interrupts negotiation.

Link copied to clipboard
fun initialize(event: ProxyInitializeEvent)

Registers the native channel only after Velocity's plugin services are initialized.

Link copied to clipboard
fun message(event: PluginMessageEvent): EventTask?

Classifies the authenticated sender and submits its native write under one routing lock. Handling the event prevents other asynchronous listeners from forwarding retired backend packets later.

Link copied to clipboard
fun shutdown(event: ProxyShutdownEvent): EventTask?

Waits for owner-thread cleanup before Velocity exits, then releases the channel registration.