1
0
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:
Tim203
2021-01-18 01:34:19 +01:00
parent 61739fbd58
commit 3eb607772d
27 changed files with 591 additions and 289 deletions

View File

@@ -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.