Mod API 0.4.0
This update brings some major (and breaking) changes to the Mod API, with the stand-out change being the implementation of event-driven packets.
What's Changed
- Implements an event packet system:
- Currently supports one event packet, the player's location. This event is sent every time a player switches instances on the server.
- As this event should be the go-to method of getting a player's location, this event has replaced the standard location packet which has now been fully removed.
- This system works based on a custom register packet, that the implementation of HypixelModAPI will handle for you.
- If you wish to subscribe to an event, you should call HypixelModAPI#subscribeToEventPacket with the class instance of the event you wish to subscribe to.
- Unsubscribing from events is not supported, this is due to the fact that other mods may be subscribing to the same events and unsubscribing could lead to issues with multiple mods.
- Currently supports one event packet, the player's location. This event is sent every time a player switches instances on the server.
- Implements a "hello" packet:
- This packet is automatically sent to all players upon joining the Hypixel Server.
- The packet contains one piece of data at this time, which is the server environment.
- Implements a version 2 of the party_info packet
- This version now includes the party roles of members.
Full Changelog: v0.3.3...v0.4.0