Package dev.arbjerg.lavalink.api
Class PluginEventHandler
-
- All Implemented Interfaces:
public abstract class PluginEventHandlerMust be provided as a bean
-
-
Constructor Summary
Constructors Constructor Description PluginEventHandler()
-
Method Summary
Modifier and Type Method Description UnitonWebSocketOpen(ISocketContext context, Boolean resumed)Fired upon a new WebSocket being opened UnitonSocketContextPaused(ISocketContext context)Fired upon a WebSocket being closed while being configured for resuming UnitonSocketContextDestroyed(ISocketContext context)Fired once the WebSocket is closed without being resumable or when a WebSocket can no longer be resumed UnitonWebSocketMessageOut(ISocketContext context, String message)Fired upon a WebSocket message being sent UnitonNewPlayer(ISocketContext context, IPlayer player)Fired upon a new player being created UnitonDestroyPlayer(ISocketContext context, IPlayer player)Fired upon a player being destroyed -
-
Method Detail
-
onWebSocketOpen
Unit onWebSocketOpen(ISocketContext context, Boolean resumed)
Fired upon a new WebSocket being opened
- Parameters:
context- the new websocketresumed- if the context was resumed and thus reused
-
onSocketContextPaused
Unit onSocketContextPaused(ISocketContext context)
Fired upon a WebSocket being closed while being configured for resuming
- Parameters:
context- the socket context
-
onSocketContextDestroyed
Unit onSocketContextDestroyed(ISocketContext context)
Fired once the WebSocket is closed without being resumable or when a WebSocket can no longer be resumed
- Parameters:
context- the socket context
-
onWebSocketMessageOut
Unit onWebSocketMessageOut(ISocketContext context, String message)
Fired upon a WebSocket message being sent
- Parameters:
context- the websocketmessage- the message, presumably in JSON
-
onNewPlayer
Unit onNewPlayer(ISocketContext context, IPlayer player)
Fired upon a new player being created
- Parameters:
context- the websocketplayer- the new player
-
onDestroyPlayer
Unit onDestroyPlayer(ISocketContext context, IPlayer player)
Fired upon a player being destroyed
- Parameters:
context- the websocketplayer- the player to be destroyed
-
-
-
-