Skip to content

PacketAPI is a resource for sending, receiving or modifying network packets.

License

Notifications You must be signed in to change notification settings

epicgo/PacketAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacketAPI

PacketAPI is a resource for sending, receiving or modifying network packets.

What is PacketAPI?

PacketAPI is an open source project that sending, receiving or modifying network packets. Easy and flexible to use with efficient API Developer.

What can do?
Here are a couple of things PacketAPI can do:
  • Modifies the values for sending packages.
  • Modifies the values for receiving packages.
What requires?
Here are a couple of things that PacketAPI requires:
  • Java 8
  • Netty 4.1.68
  • Spigot API 1.8
Compatibility?
Here are a couple of things that PacketAPI is compatible with:
  • Spigot (1.8.x)

Usage:

package io.github.epicgo.packet;

public static class PacketExampleListener implements PacketEventListener {
    
    @PacketEventHandler(listenType = PacketWrapperType.PacketPlayInCustomPayload)
    public void onReceive(final PacketReceiveEvent event) {
        final PacketWrapper packetWrapper = event.getPacketWrapper();
        final String packetName = packetWrapper.getName();
        
        System.out.println("Packet -> " + packetName);
        System.out.println("Player Channel -> " + packetWrapper.get("a"));
        System.out.println("Player Packet Data Channel -> " + packetWrapper.get("b"));
    }
}

About

PacketAPI is a resource for sending, receiving or modifying network packets.

Topics

Resources

License

Stars

Watchers

Forks

Languages