All events are fired on the main thread. Events whose name ends in PreEvent are cancellable.
StreamLiveEvent, StreamOfflineEvent, StreamFollowEvent, StreamSubscribeEvent,
StreamRaidEvent, StreamChatEvent. Details and an example on
Alerts and events .
Event
Fired when
RecordReceivedPreEvent
A federation record arrives, before your policy runs. Cancel to ignore it
RecordAppliedEvent
A record was applied as a ban
AppealResolvedEvent
An appeal was accepted or rejected
Event
Fired when
UpdateStagedEvent
A new jar is downloaded and waits for restart
UpdateApplyPreEvent
Before /forgerelay apply swaps a jar. Cancel to keep the old one
Event
Fired when
NodeStateChangeEvent
A node goes up, down, draining or drained
PlayerRoutePreEvent
Velocity side, before a player is sent to a lobby. Change event.target or cancel
Event
Fired when
CheckFlagPreEvent
A check flags a player, before the score changes. Cancel to drop the flag
DetectionConfirmedEvent
A player’s score reached max-score for a check
fun onRecord (event: RecordReceivedPreEvent ) {
if (event.record.category == Category.OTHER && event.record.evidence. isEmpty ()) {