Feature Request: Get list of PacketListeners

In my current problem, I’‘m receiving messages with my own extension, but they get picked up and processed by other PacketListeners in ways that I don’'t want. It would be nice to have a way to get a list of the other PacketListeners and add a NotFilter to them all. This would need to be done after all the plugins are loaded.

I believe I’‘ve solved my immediate problem by identifying which PacketListener is intercepting “my” packets - the Workspace, removing it, creating a NotFilter and adding the Workpace again with the new filter. But that doesn’'t protect me from any other plugins.

  • Jasen.

Try to throw something like this:

throw new PacketRejectedException(“DONT_SEND”);

in your PacketListener implementation.

Hope Helped