[1.0] PacketListenAPI - Easily use packets on your plugin! 2021-01-06

A little API that makes packet interception and listening too easy!

  1. Craft_play7777
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    Source Code:
    https://gitlab.com/Plugner/packetlistenapi
    PacketListenAPI

    PacketListenAPI is a little API that makes packet interception and listening too easy, look this example:

    Code (Java):
            PacketAPI.packetListen(player, PacketType.OUT, new PacketBack() {
                @Override
                public boolean onPacketReceived(Player player, PacketType packetType, Packet packet) {
                    Bukkit.getConsoleSender().sendMessage(packet.toString());
                    return false /* False = don't block, and True block the packet*/;
                }
            });
    Where PacketType is the read/write packet, IN = Read (Client to Server), OUT = Write (Server to Clients).