/FastPacketListener

Small Bukkit packet listener with 1.8 to 1.13.2 support !

Primary LanguageJavaMIT LicenseMIT

FastPacketListener

How to use

        // Create a new packet listener for the plugin
        FastPacketListener packetListener = new FastPacketListener(this);

        // Add a packet handler
        packetListener.addHandler((player, channel, packet, direction) -> {            

            if (something) {
                // When 'false' is returned the packet is cancelled
                return false;
            }
            
            return true; // The packet is not cancelled
        });

TODO

  • Finish README
  • Add JavaDoc
  • Deploy to an other maven repo