Quick Overview for PacketAPI: PacketAPI PacketAPI is currently only available for CraftBukkit 1.7.5. Sometimes working with packets can be harder than people think, working with NMS, keeping you code up-to-date, and many more problems may raise up. This plugin has many features, here a list of them: Fast and Lightweight Easy to use No reflection required to acces NMS classes Your code always up-to-date (updates will be made to the api, not to your code) Custom listener handlers Constru..
PacketAPI is currently only available for CraftBukkit 1.7.5.
Sometimes working with packets can be harder than people think, working with NMS, keeping you code up-to-date, and many more problems may raise up. This plugin has many features, here a list of them:
PacketAPI was basically made to be as lightweight and easy to use as possible, here a little diagram I made (time in nanoseconds):
Here a basic example of how sending an animation packet can be done:
Here an example of how packet interception can be done, this little plugin will cancel the PacketPlayOutAnimation packet:
More examples and an explanation can be found on the developer page:
Page not created yet.
The first, finding out what data an argument needs (in the default NMS constructor) can be really hard, for example the PacketPlayOutBed packet, this is how it's being handled in NMS:
Well, alot, all PacketAPI constructors all require bukkit classes, for example a Player instead of an EntityPlayer (which means you never have to update your plugin). Also, I renamed all the constructor arguments, so everyone knows what it is, for example the PacketPlayOutBed packet mentioned earlier, but now in PacketAPI:
As you can see, it's very clear what this constructor needs, a player, and the x, y, z location.
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
If you think you found a bug, please report it to by sending a private message, thanks.
I haven't really planned to add new features, but if you have any idea please send me a private message.