mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
#3475: Add KickPlayerRaw channel
This commit is contained in:
parent
9a71358dfa
commit
9a7617f9b8
@ -584,6 +584,16 @@ public class DownstreamBridge extends PacketHandler
|
||||
}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user