Package septogeddon.pluginquery.api
Interface QueryListener
- All Known Subinterfaces:
QueryConnectionStateListener
,QueryMessageListener
- All Known Implementing Classes:
BungeePluginQuery
,QueryForwarder
,SpigotPluginQuery
,VelocityPluginQuery
public interface QueryListener
Listen to Connection State Change and Incoming Query Message
- Author:
- Thito Yalasatria Sunarya
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onConnectionStateChange
(QueryConnection connection) Called whenQueryConnection.isConnected()
value changedvoid
onQueryReceived
(QueryConnection connection, String channel, byte[] message) Called when the connection received a query message
-
Method Details
-
onConnectionStateChange
Called whenQueryConnection.isConnected()
value changed- Parameters:
connection
-- Throws:
Throwable
- any error that could possibly happen during the event listener execution
-
onQueryReceived
Called when the connection received a query message- Parameters:
connection
-channel
-message
-- Throws:
Throwable
- any error that could possibly happen during the event listener execution
-