Solved Send packet to the client

Discussion in 'BungeeCord Plugin Development' started by Enotkin, May 2, 2017.

  1. Hi. I have a cracked minecraft server and i want to allow entry to players with a license without a custom authorization. I want to send the packet to the client as it does the bungee with online-mode = true

    I think it should be done through a method:

    Code (Text):
        public void onLogin(PreLoginEvent e) {
           e.getConnection().unsafe().sendPacket( PACKET );
    And I think that it will be necessary to create CustomEncoder and CustomDecoder.

    Someone might suggest how to implement it?
    Perhaps someone has already realized this and wants to share .-.

    Sorry for my english :(