#3475: Add KickPlayerRaw channel
This commit is contained in:
parent
9a71358dfa
commit
9a7617f9b8
@ -584,6 +584,16 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "KickPlayerRaw":
|
||||||
|
{
|
||||||
|
ProxiedPlayer player = bungee.getPlayer( in.readUTF() );
|
||||||
|
if ( player != null )
|
||||||
|
{
|
||||||
|
BaseComponent[] kickReason = ComponentSerializer.parse( in.readUTF() );
|
||||||
|
player.disconnect( kickReason );
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check we haven't set out to null, and we have written data, if so reply back back along the BungeeCord channel
|
// Check we haven't set out to null, and we have written data, if so reply back back along the BungeeCord channel
|
||||||
|
Loading…
Reference in New Issue
Block a user