API Reference
Events
Server→plugin push stream (SSE)
GET
/api/plugin/events Open the server event stream (SSE)
One long-lived Server-Sent Events stream per server. The hub pushes chat, punishment and transfer-command events for this tenant, plus periodic pings. The SDK consumes this with automatic reconnect/backoff.
Parameters
-
serverIdstring queryServer whose transfer commands route to this stream.
Responses
-
200OK
Request
~
curl -X GET http://localhost:8090/api/plugin/events?serverId=value \
-H "X-Hive-Api-Key: $HIVE_API_KEY"// One long-lived stream per server; the SDK reconnects with backoff.
hive.events()
.onChat(payload -> { })
.onPunishment(payload -> { })
.onTransferCommand(payload -> { })
.connect("skywars-1");