api.event().
Event Categories
| Method | Events |
|---|---|
api.event().group() | Group created, updated, deleted |
api.event().server() | Server started, stopped, state changed |
api.event().persistentServer() | Persistent server events |
api.event().blueprint() | Blueprint created, updated, deleted |
Server Events
Server Started
Server Stopped
Server State Changed
Server Updated
Server Deleted
Group Events
Group Created
Group Updated
Group Deleted
Persistent Server Events
Blueprint Events
Managing Subscriptions
Subscriptions implementAutoCloseable. Always clean them up when done:
Manual Cleanup
Try-with-Resources
Plugin Lifecycle
Event Reference
Server Events
| Event | Properties |
|---|---|
ServerStartedEvent | serverId, groupName |
ServerStoppedEvent | serverId, groupName |
ServerStateChangedEvent | serverId, oldState, newState |
ServerUpdatedEvent | serverId |
ServerDeletedEvent | serverId |
Group Events
| Event | Properties |
|---|---|
GroupCreatedEvent | serverGroupId |
GroupUpdatedEvent | serverGroupId |
GroupDeletedEvent | serverGroupId |
Persistent Server Events
| Event | Properties |
|---|---|
PersistentServerCreatedEvent | serverId |
PersistentServerStartedEvent | serverId |
PersistentServerStoppedEvent | serverId |
PersistentServerUpdatedEvent | serverId |
PersistentServerDeletedEvent | serverId |
Blueprint Events
| Event | Properties |
|---|---|
BlueprintCreatedEvent | blueprintId |
BlueprintUpdatedEvent | blueprintId |
BlueprintDeletedEvent | blueprintId |