Cleanup proxy packet injector in Spigot too. FIXES 127
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren