2014-04-25 02:55:17 +02:00
|
|
|
package com.comphenix.protocol.events;
|
|
|
|
|
|
|
|
import org.bukkit.plugin.Plugin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a packet listener that is invoked after a packet has been sent or received.
|
|
|
|
* @author Kristian
|
|
|
|
*/
|
|
|
|
public interface PacketPostListener {
|
2023-05-12 16:35:34 +02:00
|
|
|
/**
|
|
|
|
* Retrieve the plugin this listener belongs to.
|
|
|
|
* @return The assoicated plugin.
|
|
|
|
*/
|
2023-06-05 15:42:55 +02:00
|
|
|
Plugin getPlugin();
|
2023-05-12 16:35:34 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Invoked after a packet has been sent or received.
|
|
|
|
* <p>
|
|
|
|
* Note that this is invoked asynchronously.
|
|
|
|
* @param event - the packet event.
|
|
|
|
*/
|
2023-06-05 15:42:55 +02:00
|
|
|
void onPostEvent(PacketEvent event);
|
2014-04-25 02:55:17 +02:00
|
|
|
}
|