Packet Enrichment Module
Overview
The packet enrichment module provides servers with additional information about already existing packets and/or adds additional packets to provide servers with extra information about a player.
We have an open-source reference plugin (opens in a new tab) that leverages the PLAYER_USE_ITEM_BUCKET_PACKET to eliminate water and lava bucket desync on 1.7 and 1.8.
This module is disabled by default, if you wish to use this module you will need to enable it in config.yml.
Integration
Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.
The majority of this module is handled through Apollo's event system.
The following events are related to the packet enrichment module, you can find more information about each event on the events page.
ApolloPlayerChatCloseEventApolloPlayerChatOpenEventApolloPlayerAttackEventApolloPlayerUseItemEventApolloPlayerUseItemBucketEvent
Available options
-
PLAYER_ATTACK_PACKET- Controls whether the client sends an additional player attack packet to the server.
- Values
- Type:
Boolean - Default:
false
- Type:
-
PLAYER_ATTACK_EVENT- Controls whether Apollo fires
ApolloPlayerAttackEventwhen the packet is received. - Disable this and handle the packet yourself if you require asynchronous or off-thread processing.
- Values
- Type:
Boolean - Default:
false
- Type:
- Controls whether Apollo fires
-
PLAYER_CHAT_OPEN_PACKET- Controls whether the client sends an additional player chat open packet to the server.
- Values
- Type:
Boolean - Default:
false
- Type:
-
PLAYER_CHAT_OPEN_EVENT- Controls whether Apollo fires
ApolloPlayerChatOpenEventwhen the packet is received. - Disable this and handle the packet yourself if you require asynchronous or off-thread processing.
- Values
- Type:
Boolean - Default:
false
- Type:
- Controls whether Apollo fires
-
PLAYER_CHAT_CLOSE_PACKET- Controls whether the client sends an additional player chat close packet to the server.
- Values
- Type:
Boolean - Default:
false
- Type:
-
PLAYER_CHAT_CLOSE_EVENT- Controls whether Apollo fires
ApolloPlayerChatCloseEventwhen the packet is received. - Disable this and handle the packet yourself if you require asynchronous or off-thread processing.
- Values
- Type:
Boolean - Default:
false
- Type:
- Controls whether Apollo fires
-
PLAYER_USE_ITEM_PACKET- Controls whether the client sends an additional player use item packet to the server.
- Values
- Type:
Boolean - Default:
false
- Type:
-
PLAYER_USE_ITEM_EVENT- Controls whether Apollo fires
ApolloPlayerUseItemEventwhen the packet is received. - Disable this and handle the packet yourself if you require asynchronous or off-thread processing.
- Values
- Type:
Boolean - Default:
false
- Type:
- Controls whether Apollo fires
-
PLAYER_USE_ITEM_BUCKET_PACKET- Controls whether the client sends an additional player use item bucket packet to the server.
- Values
- Type:
Boolean - Default:
false
- Type:
-
PLAYER_USE_ITEM_BUCKET_EVENT- Controls whether Apollo fires
ApolloPlayerUseItemBucketEventwhen the packet is received. - Disable this and handle the packet yourself if you require asynchronous or off-thread processing.
- Values
- Type:
Boolean - Default:
false
- Type:
- Controls whether Apollo fires