mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-30 12:19:22 +00:00
Stopped using disconnect and (Bungee's) handshake event
Instead we're listening for the actual channel to close.
This commit is contained in:
@@ -47,6 +47,16 @@ public interface InjectorAddon {
|
||||
*/
|
||||
void onLoginDone(Channel channel);
|
||||
|
||||
/**
|
||||
* Called when the channel has been closed. Note that this method will be called for every
|
||||
* closed connection (if it is injected), so it'll also run this method for closed connections
|
||||
* between a server and the proxy (when Floodgate is running on a proxy).
|
||||
*
|
||||
* @param channel the channel that the injecor injected
|
||||
*/
|
||||
default void onChannelClosed(Channel channel) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when Floodgate is removing the injection from the server. The addon should remove his
|
||||
* traces otherwise it is likely that an error will popup after the server is injected again.
|
||||
|
||||
Reference in New Issue
Block a user