Write down a supported message type (ByteBuf) when using the ping handler.
This commit is contained in:
parent
96444ae304
commit
08789d8f9f
@ -1,5 +1,7 @@
|
|||||||
package net.md_5.bungee.connection;
|
package net.md_5.bungee.connection;
|
||||||
|
|
||||||
|
import io.netty.buffer.ByteBuf;
|
||||||
|
import io.netty.buffer.Unpooled;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import net.md_5.bungee.api.Callback;
|
import net.md_5.bungee.api.Callback;
|
||||||
import net.md_5.bungee.api.ServerPing;
|
import net.md_5.bungee.api.ServerPing;
|
||||||
@ -14,10 +16,11 @@ public class PingHandler extends PacketHandler
|
|||||||
|
|
||||||
private final ServerInfo target;
|
private final ServerInfo target;
|
||||||
private final Callback<ServerPing> callback;
|
private final Callback<ServerPing> callback;
|
||||||
private static final byte[] pingBuf = new byte[]
|
// TODO: Update this to 1.6.2 style!
|
||||||
|
private static final ByteBuf pingBuf = Unpooled.wrappedBuffer( new byte[]
|
||||||
{
|
{
|
||||||
(byte) 0xFE, (byte) 0x01
|
(byte) 0xFE, (byte) 0x01
|
||||||
};
|
} );
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connected(ChannelWrapper channel) throws Exception
|
public void connected(ChannelWrapper channel) throws Exception
|
||||||
|
Loading…
Reference in New Issue
Block a user