Skip to content

Commit

Permalink
Minor change to velocity module
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Dec 13, 2023
1 parent 3c41847 commit 5eae00e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void onProxyInitialize(ProxyInitializeEvent event) {
PacketEvents.getAPI().getSettings().reEncodeByDefault(false);
// It should only be enabled in a development environment, not globally
// PacketEvents.getAPI().getSettings().debug(true);
PacketEvents.getAPI().getEventManager().registerListener(new PacketListenerAbstract() {
PacketListenerAbstract listener = new PacketListenerAbstract() {
@Override
public void onPacketReceive(PacketReceiveEvent event) {
//System.out.println("Incoming: " + event.getPacketType().getName());
Expand All @@ -86,7 +86,8 @@ public void onPacketSend(PacketSendEvent event) {
System.out.println("After processing: " + msg.getMessage());
}*/
}
});
};
//PacketEvents.getAPI().getEventManager().registerListener(listener);
PacketEvents.getAPI().init();
}

Expand Down

0 comments on commit 5eae00e

Please sign in to comment.