added protocolChanged method to PacketHandler

This commit is contained in:
Outfluencer 2023-12-28 19:06:29 +01:00 committed by GitHub
parent a74665b6c8
commit f4fc652354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package net.md_5.bungee.netty;
import net.md_5.bungee.api.event.ProtocolChangedEvent;
import net.md_5.bungee.protocol.PacketWrapper;
import net.md_5.bungee.protocol.Protocol;
public abstract class PacketHandler extends net.md_5.bungee.protocol.AbstractPacketHandler
{
@ -32,4 +34,9 @@ public abstract class PacketHandler extends net.md_5.bungee.protocol.AbstractPac
public void writabilityChanged(ChannelWrapper channel) throws Exception
{
}
public void protocolChanged(ChannelWrapper channel, Protocol oldProtocol, Protocol newProtocol, ProtocolChangedEvent.Direction direction)
{
}
}