#1945: Relay MC|Brand messages
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package net.md_5.bungee.protocol.packet;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.base.Predicate;
|
||||
import net.md_5.bungee.protocol.DefinedPacket;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import java.io.ByteArrayInputStream;
|
||||
@@ -20,6 +21,15 @@ import net.md_5.bungee.protocol.ProtocolConstants;
|
||||
public class PluginMessage extends DefinedPacket
|
||||
{
|
||||
|
||||
public static final Predicate<PluginMessage> SHOULD_RELAY = new Predicate<PluginMessage>()
|
||||
{
|
||||
@Override
|
||||
public boolean apply(PluginMessage input)
|
||||
{
|
||||
return input.getTag().equals( "REGISTER" ) || input.getTag().equals( "MC|Brand" );
|
||||
}
|
||||
};
|
||||
//
|
||||
private String tag;
|
||||
private byte[] data;
|
||||
|
||||
|
Reference in New Issue
Block a user