mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 11:36:51 +01:00
Cleanup proxy packet injector in Spigot too. FIXES 127
This commit is contained in:
parent
57ad8d8aaa
commit
bed74f6ab6
@ -1113,6 +1113,8 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok
|
||||
// Remove packet handlers
|
||||
if (packetInjector != null)
|
||||
packetInjector.cleanupAll();
|
||||
if (spigotInjector != null)
|
||||
spigotInjector.cleanupAll();
|
||||
|
||||
// Remove server handler
|
||||
playerInjection.close();
|
||||
|
@ -545,4 +545,13 @@ public class SpigotPacketInjector implements SpigotPacketListener {
|
||||
else
|
||||
throw new PlayerLoggedOutException("Player " + player + " has logged out");
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoked when the server is cleaning up.
|
||||
*/
|
||||
public void cleanupAll() {
|
||||
if (proxyPacketInjector != null) {
|
||||
proxyPacketInjector.cleanupAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user